Hide menu
Loading...
Searching...
No Matches
cadex::Base_PublicObject Class Reference

Base class for all public classes. More...

#include <cadex/Base_PublicObject.hxx>

Inheritance diagram for cadex::Base_PublicObject:
cadex::ModelData_BIMBaseObject cadex::ModelData_BIMMaterial cadex::ModelData_BIMPropertyLibrary cadex::ModelData_PMIGraphicalElementComponent cadex::ModelData_PMIOutline cadex::ModelPrs_BackgroundStyle cadex::ModelPrs_Exploder cadex::ModelPrs_Geometry cadex::ModelPrs_Manipulator cadex::ModelPrs_Measurement cadex::ModelPrs_MeasurementFactory cadex::ModelPrs_OffscreenViewPort cadex::ModelPrs_Scene cadex::ModelPrs_SceneNode cadex::ModelPrs_SceneNodeFactory cadex::ModelPrs_SceneNodeFactoryParameters cadex::ModelPrs_Selection cadex::ModelPrs_SelectionManager cadex::ModelPrs_ViewCubeStyle

Public Member Functions

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::Base_HandledObject * Impl () const
 Return a handle to backend (reserved for internal use).
 

Protected Member Functions

 Base_PublicObject (const internal::Base_HandledObject *theObject)
 Constructor (reserved for internal use).
 
template<typename T >
T * GetOrCreateImpl ()
 Reserved for internal use.
 

Detailed Description

Base class for all public classes.

Base_PublicObject is a base class which contains data implementation of public objects. Any copy of the object is shallow copy: pointer to implementation will be copied. Therefore any modification of the copied object will propagate to original object.

Examples
visualization/wpf/selectionhandling/App.xaml.cs.

Member Function Documentation

◆ IsNull()

bool cadex::Base_PublicObject::IsNull ( ) const

Returns true if the object is nullified.

See also
Nullify().
Examples
visualization/qtquick_qml/manipulator/main.cxx, and visualization/qtquick_qml/measurements/main.cxx.

◆ operator bool()

cadex::Base_PublicObject::operator bool ( ) const
inline

Casts the object to the bool type.

Returns IsNull().