Hide menu

Represents a single 2D drawing of a model. More...

Inheritance diagram for cadex::ModelData_Drawing:


class  LayerIterator
 Iterator over layers of a drawing. More...
class  SheetIterator
 Iterator over sheets of a drawing. More...

Public Member Functions

 ModelData_Drawing ()
 Constructor. Creates an empty drawing.
 ModelData_Drawing (const ModelData_DrawingSheet &theSheet)
 Constructor. Creates a drawing with a single sheet.
size_t NumberOfSheets () const
 Returns the number of sheets in the drawing.
void AddSheet (const ModelData_DrawingSheet &theSheet)
 Adds a sheet to the drawing.
size_t NumberOfLayers () const
 Returns the number of layers in the drawing.
void AddLayer (const ModelData_DrawingLayer &theLayer)
 Adds a layer to the drawing.
- Public Member Functions inherited from cadex::ModelData_BaseObject
 ModelData_BaseObject ()
 Constructor. More...
IdType TypeId () const
 Returns an object type id. More...
template<typename T >
bool IsOfType () const
 Returns true if the object has a type T. More...
void SetName (const Base_UTF16String &theName)
 Sets an object name. More...
Base_UTF16String Name () const
void SetUuid (const Base_Uuid &theUuid)
Base_Uuid Uuid () const
void Nullify ()
 Resets reference to implementation object. More...
bool IsNull () const
 Returns true if the object is nullified. More...
 operator bool () const
 Casts the object to the bool type. More...
internal::ModelData_BaseObjectImpl * Impl () const
 Return a handle to backend (reserved for internal use).
const internal::Base_Handle & HImpl () const
template<typename T >
T * Impl () const
 Reserved for internal use.

Static Public Member Functions

static IdType GetTypeId ()

Additional Inherited Members

- Public Types inherited from cadex::ModelData_BaseObject
typedef int IdType
 Defines a type identifier.
- Protected Member Functions inherited from cadex::ModelData_BaseObject
 ModelData_BaseObject (const internal::ModelData_BaseObjectImpl *theImpl)
 Constructor (reserved for internal use).
 ModelData_BaseObject (const internal::ModelData_BaseObjectImpl *theImpl, const Base_UTF16String &theName)
 Constructor (reserved for internal use).
template<typename T >
T * GetOrCreateImpl ()
 Reserved for internal use.

Detailed Description

Represents a single 2D drawing of a model.

Encapsulates sheets, views and layers with various 2D geometry. An object of this class is a counterpart to the ModelData_Model class, meaning that it's meant to represesnt all drawing-related information for a single 3D model. In case the model is entirely 2D, an object corresponds to a single input file.

See also