Represents a single 2D drawing of a model.
More...
#include <cadex/Drawing/Drawing.hxx>
|
| | Drawing () |
| | Constructor. Creates an empty drawing.
|
| |
| | Drawing (const Sheet &theSheet) |
| | Constructor. Creates a drawing with a single sheet.
|
| |
| size_t | NumberOfSheets () const |
| | Returns the number of sheets in the drawing.
|
| |
| void | AddSheet (const Sheet &theSheet) |
| | Adds a sheet to the drawing.
|
| |
| size_t | NumberOfLayers () const |
| | Returns the number of layers in the drawing.
|
| |
| void | AddLayer (const Layer &theLayer) |
| | Adds a layer to the drawing.
|
| |
| size_t | Id () const |
| | Return unique identifier of public object.
|
| |
|
internal::BaseObjectImpl * | Impl () const |
| |
|
bool | IsNull () const |
| |
|
| operator bool () const |
| |
|
template<typename T > |
| bool | IsOfType () const |
| |
| template<typename T > |
| T * | Impl () const |
| | Reserved for internal use.
|
| |
|
|
static bool | CompareType (const BaseObject &theObject) |
| |
|
|
typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
| |
|
| BaseObject (const ImplType &theImpl) |
| |
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 Model class, meaning that it's meant to represent 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, and sheet_metal/unfolder/main.cxx.
◆ Drawing() [1/2]
| cadex::Drawing::Drawing::Drawing |
( |
| ) |
|
|
inline |
Constructor. Creates an empty drawing.
◆ Drawing() [2/2]
| cadex::Drawing::Drawing::Drawing |
( |
const Sheet & | theSheet | ) |
|
|
explicit |
Constructor. Creates a drawing with a single sheet.
◆ AddLayer()
| void cadex::Drawing::Drawing::AddLayer |
( |
const Layer & | theLayer | ) |
|
Adds a layer to the drawing.
◆ AddSheet()
| void cadex::Drawing::Drawing::AddSheet |
( |
const Sheet & | theSheet | ) |
|
Adds a sheet to the drawing.
◆ NumberOfLayers()
| size_t cadex::Drawing::Drawing::NumberOfLayers |
( |
| ) |
const |
Returns the number of layers in the drawing.
◆ NumberOfSheets()
| size_t cadex::Drawing::Drawing::NumberOfSheets |
( |
| ) |
const |
Returns the number of sheets in the drawing.