C3D Toolkit  Kernel - 118069, Vision - 2.16.7.1844

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< MbTextItem > Clone (MbRegDuplicate *=nullptr) const final
 Create a copy of an object.
 
bool IsSame (const MbTextItem &to, double accuracy) const final
 Are the objects equal.
 
void Accept (Visitor &visitor) const override
 Accept a visitior.
 
- Public Member Functions inherited from MbTextItem
DEPRECATE_DECLARE bool IsTagPresent (const c3d::string_t &tag) const
 Wether a tag present.
 
DEPRECATE_DECLARE bool IsHasTags () const
 Wether tags present. More...
 
DEPRECATE_DECLARE bool TagUniqueOrUndefined () const
 Get the tag provided it id qnique.
 
DEPRECATE_DECLARE bool GetTagIfUnique (c3d::string_t &tag) const
 Erase a tag.
 
DEPRECATE_DECLARE void AddTag (const c3d::string_t &tag)
 Add a non-empty tag.
 
virtual void Accept (Visitor &)=0
 Accept a visitior.
 
- Public Member Functions inherited from TapeBase
 TapeBase (RegistrableRec regs=noRegistrable)
 Constructor.
 
 TapeBase (const TapeBase &)
 Copy-constructor.
 
virtual ~TapeBase ()
 Destructor.
 
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).
 
void AddRegistrator (MbRegDuplicate *reg) const
 Add the register.
 
void RemoveRegistrator (MbRegDuplicate *reg) const
 Remove the register.
 
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.
 
- Protected Attributes inherited from MbTextItem
std::vector< c3d::string_t > m_userTags
 User tags not for serialization.
 

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 
)
explicit

Constructor.

Parameters
[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: