Hide menu
Loading...
Searching...
No Matches

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

#include <cadex/ModelData_Drawing.hxx>

Inheritance diagram for cadex::ModelData_Drawing:
cadex::ModelData_BaseObject

Classes

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.
 
IdType TypeId () const
 Returns an object type id.
 
template<typename T >
bool IsOfType () const
 Returns true if the object has a type T.
 
void SetName (const Base_UTF16String &theName)
 Sets an object name.
 
Base_UTF16String Name () const
 
void SetUuid (const Base_Uuid &theUuid)
 
Base_Uuid Uuid () const
 
void Nullify ()
 Resets reference to implementation object.
 
bool IsNull () const
 Returns true if the object is nullified.
 
 operator bool () const
 Casts the object to the bool type.
 
internal::ModelData_BaseObjectImpl * Impl () const
 Return a handle to backend (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
Drawings
Examples
exploring/drawings/Program.cs, exploring/drawings/main.cxx, sheet_metal/unfolder/Program.cs, and sheet_metal/unfolder/main.cxx.