MbLegend Auxiliary Geometric Object

Class MbLegend is declared in file legend.h.

Auxiliary object MbLegend is a derived class of MbSpaceItem, Fig. 1.

../../../../_images/O.6.10.1.png

Fig. 1

The auxiliary object is an abstract class. The C3D geometric kernel implements the following auxiliary objects that are derived from class MbLegend:

MbMarker – a point and two orthonormal vectors,

MbThread – a thread,

MbPointsSymbol – a conventional symbol on base points,

MbRough – a surface finish symbol,

MbLeader – a leader line symbol.

Auxiliary objects are used for various purposes, but they all interact with curves, surfaces, and objects of a geometric model.

Auxiliary objects override the following methods of a three-dimensional geometric object:

methods that handle transformation of a geometric object,

Move( const MbVector3D & v, MbRegTransform * iReg = NULL ),

Rotate( const MbAxis3D & axis, double angle, MbRegTransform * iReg = NULL ),

Transform( const MbMatrix3D & m, MbRegTransform * iReg = NULL ),

methods that provide copying, equality check, ability-to-match check, and make objects equal,

MbSpaceItem & Duplicate( MbRegDuplicate * iReg = NULL ),

bool IsSame( const MbSpaceItem & item ),

bool IsSimilar( const MbSpaceItem & item ),

bool SetEqual( const MbSpaceItem & item ),

methods that return a type from the enumeration of geometric objects,

MbeSpaceType IsA(),

MbeSpaceType Type(),

MbeSpaceType Family(),

methods that provide access to and editing of internal data of an object,

MbProperty & CreateProperty( MbePrompt name ),

GetProperties( MbProperties & properties ),

SetProperties( MbProperties & properties ),

a method that fills a polygonal copy of a geometric object,

CalculateWire( double sag, MbMesh & mesh ).