Represents a single sheet of a model drawing. More...
Classes | |
class | ViewIterator |
Iterates over views of a drawing sheet. More... | |
Public Types | |
enum | PaperSizeType { UnknownPaperSize = 0 , A0 , A1 , A2 , A3 , A4 , A , B , C , D , E , UserDefinedPaperSize = 1000 } |
enum | OrientationType { Landscape , Portrait } |
typedef cadex::internal::ModelData_DrawingSheetImpl | ImplType |
![]() | |
typedef int | IdType |
Defines a type identifier. | |
Public Member Functions | |
ModelData_DrawingSheet () | |
Constructor. | |
double | Width () const |
Returns the width of the sheet. | |
double | Height () const |
Returns the height of the sheet. | |
PaperSizeType | PaperSize () const |
Returns the standard paper size of the sheet, if one was defined. | |
OrientationType | Orientation () const |
Returns the orientation of the sheet. | |
void | SetStandardSheetSize (PaperSizeType thePaperSize, OrientationType theOrientation) |
Sets the sheet size to one of the standard sizes. | |
void | SetCustomSheetSize (double theWidth, double theHeight) |
Sets the custom sheet size with specified dimensions. | |
size_t | NumberOfViews () const |
Returns the number of child views. | |
void | AddView (const ModelData_DrawingView &theView) |
Adds a view to the sheet. | |
![]() | |
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 | |
![]() | |
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. | |
Represents a single sheet of a model drawing.
An object of this class mimics a physical sheet of paper, hence the size and orientation settings.
Normally a drawing sheet would have associated metadata, such as default scale, title block, etc. This information is represented with objects of ModelData_DrawingView class.
Represents orientation of the drawing sheet.
Represents supported paper sizes of drawing sheets.
double cadex::ModelData_DrawingSheet::Height | ( | ) | const |
Returns the height of the sheet.
The width and height of a sheet with a standard size depend on the orientation. Changing the orientation swaps width and height.
double cadex::ModelData_DrawingSheet::Width | ( | ) | const |
Returns the width of the sheet.
The width and height of a sheet with a standard size depend on the orientation. Changing the orientation swaps width and height.