C3D Toolkit  Kernel - 117982, Vision -

Text element which has content. More...

#include <mb_pmi.h>

+ Inheritance diagram for MbTextLiteral:
+ Collaboration diagram for MbTextLiteral:

Public Member Functions

 MbTextLiteral (const c3d::string_t &initText, const MbPlacement &place, MbeTextLiteralForm textForm)
 Constructor. More...
c3d::string_t GetText () const
 Get text.
MbPlacement GetLocation () const
 Get location in annotation plane.
double GetWidth () const
 Get width.
double GetHeight () const
 Get height.
bool SetWidth (double w)
 Set width.
bool SetHeight (double h)
 Set height.
MbeTextLiteralForm GetTextForm () const
 Get text form.
c3d::string_t GetFont () const
 Get font.
void SetFont (const c3d::string_t &font)
 Set font.
SPtr< MbTextItemClone (MbRegDuplicate *=nullptr) const final
 Create a copy of an object.
bool IsSame (const MbTextItem &to, double accuracy) const final
 Are the objects equal.
- Public Member Functions inherited from TapeBase
 TapeBase (RegistrableRec regs=noRegistrable)
 TapeBase (const TapeBase &)
virtual ~TapeBase ()
RegistrableRec GetRegistrable () const
 Whether the stream class is registrable.
void SetRegistrable (RegistrableRec regs=registrable) const
 Set the state of registration of the stream class.
virtual const char * GetPureName (const VersionContainer &) const
 Get the class name.
virtual bool IsFamilyRegistrable () const
 Whether the object belongs to a registrable family.
- Public Member Functions inherited from MbRefItem
virtual MbeRefType RefType () const
 Registration type (for copying, duplication).
refcount_t GetUseCount () const
 Get count of references (get count of owners of an object).
refcount_t AddRef () const
 Increase count of references by one.
refcount_t DecRef () const
 Decrease count of references by one.
refcount_t Release () const
 Decrease count of references by one and if count of references became zero, then remove itself.

Additional Inherited Members

- Protected Member Functions inherited from MbTextItem
 MbTextItem ()
 Default constructor.
- Protected Member Functions inherited from MbRefItem
 MbRefItem ()
 Constructor without parameters.

Detailed Description

Text element which has content.

Either text or pre-defined simbol.

Constructor & Destructor Documentation

◆ MbTextLiteral()

MbTextLiteral::MbTextLiteral ( const c3d::string_t initText,
const MbPlacement place,
MbeTextLiteralForm  textForm 


[in]initText- Text,
[in]place- Location in plane,
[in]textForm- Type of text element.

The documentation for this class was generated from the following file: