Represents a view on a drawing sheet. More...
#include <cadex/ModelData_DrawingView.hxx>
Classes | |
class | ElementIterator |
Iterates over the elements of the view. More... | |
Public Types | |
typedef cadex::internal::ModelData_DrawingViewImpl | ImplType |
![]() | |
typedef int | IdType |
Defines a type identifier. | |
Public Member Functions | |
ModelData_DrawingView () | |
Constructor. | |
ModelData_DrawingView (const ModelData_Axis2Placement2d &thePosition) | |
Constructor. Places the view at thePosition in the owning sheet. | |
const ModelData_Axis2Placement2d & | Position () const |
Returns the position of the view in the owning sheet. | |
void | SetPosition (const ModelData_Axis2Placement2d &thePosition) |
Sets the position of the view in the owning sheet. | |
const ModelData_Ratio & | Scale () const |
Returns the scale of the view. | |
void | SetScale (const ModelData_Ratio &theScale) |
Sets the scale of the view. | |
size_t | NumberOfElements () const |
Returns the number of elements in the view. | |
void | Add (const ModelData_DrawingElement &theElement) |
Adds an element to the view. | |
void | SetElementAppearance (const ModelData_DrawingElement &theElement, const ModelData_Appearance &theAppearance) |
ModelData_Appearance | ElementAppearance (const ModelData_DrawingElement &theElement) const |
void | Accept (ModelData_DrawingElementVisitor &theVisitor) const |
![]() | |
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 view on a drawing sheet.
Usually a view is a logical portion of the sheet, containing one of the literal views of the model (e.g. top view, isometric view, cutaway view). Following this idea, the view is defined by a position in the sheet and a scale (real-world model dimensions vs on-paper dimensions).
Generally an object of this class can contain any collection of drawing elements (i.e. 2D geometry), but it's expected that these elements together form a logically self-contained group.
ModelData_Appearance cadex::ModelData_DrawingView::ElementAppearance | ( | const ModelData_DrawingElement & | theElement | ) | const |
Appearance can only be obtained from drawing view.
void cadex::ModelData_DrawingView::SetElementAppearance | ( | const ModelData_DrawingElement & | theElement, |
const ModelData_Appearance & | theAppearance | ||
) |
Appearance can only be obtained from drawing view.