Defines a view orientation of the model and a subset of visible PMI elements. More...
#include <cadex/ModelData_PMISavedView.hxx>
Classes | |
class | GraphicalElementIterator |
Iterator over added graphical elements. More... | |
Public Types | |
typedef cadex::internal::ModelData_PMISavedViewImpl | ImplType |
Public Types inherited from cadex::ModelData_BaseObject | |
typedef int | IdType |
Defines a type identifier. | |
Public Member Functions | |
ModelData_PMISavedView () | |
Constructor. | |
ModelData_PMISavedView (initialized) | |
Constructor. | |
ModelData_PMISavedView (const ModelData_PMICamera &theCamera) | |
Constructor. | |
ModelData_PMISavedView (const ModelData_PMICamera &theCamera, const Base_UTF16String &theName) | |
Constructor. | |
void | SetCamera (const ModelData_PMICamera &theCamera) |
ModelData_PMICamera | Camera () const |
Returns a camera. | |
void | AddGraphicalElement (const ModelData_PMIGraphicalElement &theElement) |
Adds a graphical element. | |
size_t | NumberOfGraphicalElements () const |
Returns number of added graphical elements. | |
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 | |
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. | |
Defines a view orientation of the model and a subset of visible PMI elements.
A saved view facilitates presentation of the model and its annotation. It defines a set of elements that should be visible from the specific point of view.
A saved view contains graphical elements and camera.
cadex::ModelData_PMISavedView::ModelData_PMISavedView | ( | ) |
Constructor.
Creates not initialized object, for which IsNull() returns true.
|
explicit |
Constructor.
Creates initialized object, for which IsNull() returns false.
size_t cadex::ModelData_PMISavedView::NumberOfGraphicalElements | ( | ) | const |
Returns number of added graphical elements.
Returns 0 if IsNull().