CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdIfc4x4::IfcVoxelGrid Class Reference

#include <IfcVoxelGridAutoImpl.h>

Inheritance diagram for OdIfc4x4::IfcVoxelGrid:
OdIfc4x4::IfcSolidModel OdIfc4x4::IfcGeometricRepresentationItem OdIfc4x4::IfcRepresentationItem OdIfc4x4::OdIFC4X4Instance OdIfc::OdIfcInstance

Public Member Functions

double getVoxelSizeX () const
 
void setVoxelSizeX (double VoxelSizeX)
 
double getVoxelSizeY () const
 
void setVoxelSizeY (double VoxelSizeY)
 
double getVoxelSizeZ () const
 
void setVoxelSizeZ (double VoxelSizeZ)
 
int getNumberOfVoxelsX () const
 
void setNumberOfVoxelsX (int NumberOfVoxelsX)
 
int getNumberOfVoxelsY () const
 
void setNumberOfVoxelsY (int NumberOfVoxelsY)
 
int getNumberOfVoxelsZ () const
 
void setNumberOfVoxelsZ (int NumberOfVoxelsZ)
 
void getVoxels (OdArray< OdDAI::Boolean > &Voxels) const
 
OdDAI::ListOfBoolean & voxels ()
 
 IfcVoxelGrid ()
 
virtual OdResult inFields (OdDAI::OdSpfFilerBase *rdFiler) override
 
virtual OdResult outFields (OdDAI::OdSpfFilerBase *wrFiler) override
 
virtual OdDAI::Entity * getInstanceType () const override
 
virtual OdRxValue getAttr (const char *attrName) const override
 
virtual bool comparedToEarlyImpl (const OdDAI::ApplicationInstance *pOther, OdRx::Ordering &ordering) const override
 
virtual void unsetAttr (const char *explicitAttrName) override
 
virtual bool testAttr (const char *explicitAttrName) const override
 
virtual bool putAttr (const char *explicitAttrName, const OdRxValue &val) override
 
virtual bool isKindOf (OdIfc::OdIfcEntityType entityType) const override
 
virtual OdIfc::OdIfcEntityType type () const override
 
virtual OdRxValue getAttr (const OdIfc::OdIfcAttribute attrDef) const override
 
virtual void unsetAttr (const OdIfc::OdIfcAttribute explicitAttrDef) override
 
virtual bool testAttr (const OdIfc::OdIfcAttribute explicitAttrDef) const override
 
virtual bool putAttr (const OdIfc::OdIfcAttribute explicitAttrDef, const OdRxValue &val) override
 
- Public Member Functions inherited from OdIfc4x4::IfcRepresentationItem
void getInvLayerAssignment (OdDAIObjectIds &LayerAssignment) const
 
void getInvStyledByItem (OdDAIObjectIds &StyledByItem) const
 
- Public Member Functions inherited from OdIfc4x4::OdIFC4X4Instance
void setInverseCounterParts () override
 
- Public Member Functions inherited from OdIfc::OdIfcInstance
 ODRX_DECLARE_MEMBERS (OdIfcInstance)
 
 OdIfcInstance ()
 
 ~OdIfcInstance ()
 
bool isInstanceOf (OdIfcEntityType entityType) const
 
IfcOpResult resolved ()
 
void resolve (IfcOpResult resolved, void *resPtr)
 
void unresolve ()
 
virtual void setGsNode (OdGsCache *pGsNode)
 
virtual OdGsCachegsNode () const
 
virtual OdUInt32 subSetAttributes (OdGiDrawableTraits *traits) const
 
virtual bool subWorldDraw (OdGiWorldDraw *wd) const
 
virtual OdDbStub * ownerId () const
 

Protected Attributes

IfcNonNegativeLengthMeasure m_VoxelSizeX
 
IfcNonNegativeLengthMeasure m_VoxelSizeY
 
IfcNonNegativeLengthMeasure m_VoxelSizeZ
 
int m_NumberOfVoxelsX
 
int m_NumberOfVoxelsY
 
int m_NumberOfVoxelsZ
 
OdDAI::ListOfBoolean m_Voxels
 
- Protected Attributes inherited from OdIfc::OdIfcInstance
voidm_resPtr
 
IfcOpResult m_resolved
 

Additional Inherited Members

- Static Public Member Functions inherited from OdIfc::OdIfcInstance
static const OdGePoint3dasPoint3d (const OdIfcInstance *inst)
 
static const OdGePoint2dasPoint2d (const OdIfcInstance *inst)
 
static const OdGeVector3dasVector3d (const OdIfcInstance *inst)
 
static const OdGeVector2dasVector2d (const OdIfcInstance *inst)
 
static const OdGeMatrix2dasMatrix2d (const OdIfcInstance *inst)
 
static const OdGeMatrix3dasMatrix3d (const OdIfcInstance *inst)
 
static OdIfcCompoundPtr asCompound (OdSmartPtr< OdIfcInstance > inst)
 
static const OdCmEntityColorasRgbColor (const OdIfcInstance *inst)
 

Detailed Description

IfcVoxelGrid representation is a 3D solid shape representation that is compiled of a series of regular blocks placed inside a predefined grid.

Definition at line 40 of file IfcVoxelGridAutoImpl.h.

Constructor & Destructor Documentation

◆ IfcVoxelGrid()

OdIfc4x4::IfcVoxelGrid::IfcVoxelGrid ( )

Member Function Documentation

◆ comparedToEarlyImpl()

virtual bool OdIfc4x4::IfcVoxelGrid::comparedToEarlyImpl ( const OdDAI::ApplicationInstance * pOther,
OdRx::Ordering & ordering ) const
overridevirtual

Early-bound version of instances comparison.

Parameters
pOther[in] Other application instance.
ordering[out] Receives the ordering (comparison) status.
Returns
true if comparison was performed, false if method has no implementation, so late-bound version could be applied.
Remarks
If the method returns true, the ordering parameter can receive one of the following statuses:
Value Description kLessThan -1 This object < Other Object. kEqual 0 This object = Other Object. kGreaterThan 1 This object > Other Object. kNotOrderable 2 This class is not orderable.

Reimplemented from OdIfc4x4::IfcSolidModel.

◆ getAttr() [1/2]

virtual OdRxValue OdIfc4x4::IfcVoxelGrid::getAttr ( const char * attrName) const
overridevirtual

Returns an attribute value for the specified attribute name.

Parameters
attrName[in] Name of an attribute to query.
Returns
OdRxValue object that represents a generic variant type value.

◆ getAttr() [2/2]

virtual OdRxValue OdIfc4x4::IfcVoxelGrid::getAttr ( const OdIfc::OdIfcAttribute attrDef) const
overridevirtual

Returns an attribute value for the specified attribute definition.

Parameters
attrDef[in] Attribute definition to query.
Returns
OdRxValue object that represents a generic variant type value.

Reimplemented from OdIfc4x4::IfcRepresentationItem.

◆ getInstanceType()

virtual OdDAI::Entity * OdIfc4x4::IfcVoxelGrid::getInstanceType ( ) const
overridevirtual

Returns a type of a class instance.

Returns
Pointer to the <exref target=https://docs.opendesign.com/tkernel_api_cpp/OdDAI__Entity.html>>OdDAI::Entity</exref> type that determines an entity definition within a schema.

Reimplemented from OdIfc4x4::IfcSolidModel.

◆ getNumberOfVoxelsX()

int OdIfc4x4::IfcVoxelGrid::getNumberOfVoxelsX ( ) const

Returns the value of NumberOfVoxelsX attribute. This attribute represents the number of voxels along the X axis.

Returns
Returns the value of NumberOfVoxelsX attribute.

◆ getNumberOfVoxelsY()

int OdIfc4x4::IfcVoxelGrid::getNumberOfVoxelsY ( ) const

Returns the value of NumberOfVoxelsY attribute. This attribute represents the number of voxels along the Y axis. If not given, the value from NumberOfVoxelsX is taken.

Returns
Returns the value of NumberOfVoxelsY attribute.

◆ getNumberOfVoxelsZ()

int OdIfc4x4::IfcVoxelGrid::getNumberOfVoxelsZ ( ) const

Returns the value of NumberOfVoxelsZ attribute. This attribute represents the numberOf voxels along the Z axis. If not given, the value from NumberOfVoxelsX is taken.

Returns
Returns the value of NumberOfVoxelsZ attribute.

◆ getVoxels()

void OdIfc4x4::IfcVoxelGrid::getVoxels ( OdArray< OdDAI::Boolean > & Voxels) const

Gets the value of Voxels attribute. This attribute represents the voxels on the grid. The array is one-dimensional where values are distributed in the following order: along X, then Y and finally Z.

Parameters
Voxels[in] Voxels attribute to set.

◆ getVoxelSizeX()

double OdIfc4x4::IfcVoxelGrid::getVoxelSizeX ( ) const

Returns the value of VoxelSizeX attribute. This attribute represents the size of voxels in the X axis.

Returns
Returns the value of VoxelSizeX attribute.

◆ getVoxelSizeY()

double OdIfc4x4::IfcVoxelGrid::getVoxelSizeY ( ) const

Returns the value of VoxelSizeY attribute. This attribute represents the size of voxels in the Y axis. If not given, the value from VoxelSizeX is taken.

Returns
Returns the value of VoxelSizeY attribute.

◆ getVoxelSizeZ()

double OdIfc4x4::IfcVoxelGrid::getVoxelSizeZ ( ) const

Returns the value of VoxelSizeZ attribute. This attribute represents the size of voxels in the Z axis. If not given, the value from VoxelSizeX is taken.

Returns
Returns the value of VoxelSizeZ attribute.

◆ inFields()

virtual OdResult OdIfc4x4::IfcVoxelGrid::inFields ( OdDAI::OdSpfFilerBase * rdFiler)
overridevirtual

Reads object's data from the specified filer.

Parameters
rdFiler[in] Pointer to a filer from which to read the data.
Returns
A value of OdResult type that contains the result of the method execution.

Reimplemented from OdIfc4x4::IfcRepresentationItem.

◆ isKindOf()

virtual bool OdIfc4x4::IfcVoxelGrid::isKindOf ( OdIfc::OdIfcEntityType entityType) const
overridevirtual

Checks whether the specified instance is the object derived from or belongs to this class.

Parameters
entityType[in] Entity to check.
Returns
true if the specified instance is the object derived from or belongs to this class, false otherwise.

Reimplemented from OdIfc4x4::IfcSolidModel.

◆ outFields()

virtual OdResult OdIfc4x4::IfcVoxelGrid::outFields ( OdDAI::OdSpfFilerBase * wrFiler)
overridevirtual

Writes object's data the the specified filer.

Parameters
wrFiler[in] Pointer to a filer to which to write the data.
Returns
A value of OdResult type that contains the result of the method execution.

Reimplemented from OdIfc4x4::IfcRepresentationItem.

◆ putAttr() [1/2]

virtual bool OdIfc4x4::IfcVoxelGrid::putAttr ( const char * explicitAttrName,
const OdRxValue & val )
overridevirtual

Sets the specified attribute with a given value.

Parameters
explicitAttrName[in] Explicit name of the attribute to set.
val[in] Value to set.
Returns
true if the value is successfully set for the specified attribute, false otherwise.

Reimplemented from OdIfc::OdIfcInstance.

◆ putAttr() [2/2]

virtual bool OdIfc4x4::IfcVoxelGrid::putAttr ( const OdIfc::OdIfcAttribute explicitAttrDef,
const OdRxValue & val )
overridevirtual

Sets the specified attribute with a given value.

Parameters
explicitAttrDef[in] Explicit attribute definition to set.
val[in] Value to set.
Returns
true if the value is successfully set for the specified attribute, false otherwise.

Reimplemented from OdIfc4x4::IfcRepresentationItem.

◆ setNumberOfVoxelsX()

void OdIfc4x4::IfcVoxelGrid::setNumberOfVoxelsX ( int NumberOfVoxelsX)

Sets the value of NumberOfVoxelsX attribute. This attribute represents the number of voxels along the X axis.

Parameters
NumberOfVoxelsX[in] NumberOfVoxelsX attribute to set.

◆ setNumberOfVoxelsY()

void OdIfc4x4::IfcVoxelGrid::setNumberOfVoxelsY ( int NumberOfVoxelsY)

Sets the value of NumberOfVoxelsY attribute. This attribute represents the number of voxels along the Y axis. If not given, the value from NumberOfVoxelsX is taken.

Parameters
NumberOfVoxelsY[in] NumberOfVoxelsY attribute to set.

◆ setNumberOfVoxelsZ()

void OdIfc4x4::IfcVoxelGrid::setNumberOfVoxelsZ ( int NumberOfVoxelsZ)

Sets the value of NumberOfVoxelsZ attribute. This attribute represents the numberOf voxels along the Z axis. If not given, the value from NumberOfVoxelsX is taken.

Parameters
NumberOfVoxelsZ[in] NumberOfVoxelsZ attribute to set.

◆ setVoxelSizeX()

void OdIfc4x4::IfcVoxelGrid::setVoxelSizeX ( double VoxelSizeX)

Sets the value of VoxelSizeX attribute. This attribute represents the size of voxels in the X axis.

Parameters
VoxelSizeX[in] VoxelSizeX attribute to set.

◆ setVoxelSizeY()

void OdIfc4x4::IfcVoxelGrid::setVoxelSizeY ( double VoxelSizeY)

Sets the value of VoxelSizeY attribute. This attribute represents the size of voxels in the Y axis. If not given, the value from VoxelSizeX is taken.

Parameters
VoxelSizeY[in] VoxelSizeY attribute to set.

◆ setVoxelSizeZ()

void OdIfc4x4::IfcVoxelGrid::setVoxelSizeZ ( double VoxelSizeZ)

Sets the value of VoxelSizeZ attribute. This attribute represents the size of voxels in the Z axis. If not given, the value from VoxelSizeX is taken.

Parameters
VoxelSizeZ[in] VoxelSizeZ attribute to set.

◆ testAttr() [1/2]

virtual bool OdIfc4x4::IfcVoxelGrid::testAttr ( const char * explicitAttrName) const
overridevirtual

Checks whether the specified attribute is set.

Parameters
explicitAttrName[in] Explicit name of the attribute to test.
Returns
true if the specified attribute is set, false otherwise.

Reimplemented from OdIfc4x4::IfcRepresentationItem.

◆ testAttr() [2/2]

virtual bool OdIfc4x4::IfcVoxelGrid::testAttr ( const OdIfc::OdIfcAttribute explicitAttrDef) const
overridevirtual

Checks whether the specified attribute is set.

Parameters
explicitAttrDef[in] Attribute definition to test.
Returns
true if the specified attribute is set, false otherwise.

Reimplemented from OdIfc4x4::IfcRepresentationItem.

◆ type()

virtual OdIfc::OdIfcEntityType OdIfc4x4::IfcVoxelGrid::type ( ) const
overridevirtual

Returns the type of this entity.

Returns
A value of the <exref target=https://docs.opendesign.com/tkernel_api_cpp/OdIfc__OdIfcEntityType.html>>OdIfc::OdIfcEntityType</exref> type that represents type of this entity.

Reimplemented from OdIfc4x4::IfcSolidModel.

◆ unsetAttr() [1/2]

virtual void OdIfc4x4::IfcVoxelGrid::unsetAttr ( const char * explicitAttrName)
overridevirtual

Resets a value for the specified attribute.

Parameters
explicitAttrName[in] Explicit name of the attribute to reset.

Reimplemented from OdIfc4x4::IfcRepresentationItem.

◆ unsetAttr() [2/2]

virtual void OdIfc4x4::IfcVoxelGrid::unsetAttr ( const OdIfc::OdIfcAttribute explicitAttrDef)
overridevirtual

Resets a value for the specified attribute.

Parameters
explicitAttrDef[in] Explicit definition that represents an attribute to reset.

Reimplemented from OdIfc4x4::IfcRepresentationItem.

◆ voxels()

OdDAI::ListOfBoolean & OdIfc4x4::IfcVoxelGrid::voxels ( )

Returns the value of Voxels attribute. This attribute represents the voxels on the grid. The array is one-dimensional where values are distributed in the following order: along X, then Y and finally Z.

Returns
Returns the value of Voxels attribute.

Member Data Documentation

◆ m_NumberOfVoxelsX

int OdIfc4x4::IfcVoxelGrid::m_NumberOfVoxelsX
protected

Definition at line 297 of file IfcVoxelGridAutoImpl.h.

◆ m_NumberOfVoxelsY

int OdIfc4x4::IfcVoxelGrid::m_NumberOfVoxelsY
protected

Definition at line 298 of file IfcVoxelGridAutoImpl.h.

◆ m_NumberOfVoxelsZ

int OdIfc4x4::IfcVoxelGrid::m_NumberOfVoxelsZ
protected

Definition at line 299 of file IfcVoxelGridAutoImpl.h.

◆ m_Voxels

OdDAI::ListOfBoolean OdIfc4x4::IfcVoxelGrid::m_Voxels
protected

Definition at line 300 of file IfcVoxelGridAutoImpl.h.

◆ m_VoxelSizeX

IfcNonNegativeLengthMeasure OdIfc4x4::IfcVoxelGrid::m_VoxelSizeX
protected

Definition at line 294 of file IfcVoxelGridAutoImpl.h.

◆ m_VoxelSizeY

IfcNonNegativeLengthMeasure OdIfc4x4::IfcVoxelGrid::m_VoxelSizeY
protected

Definition at line 295 of file IfcVoxelGridAutoImpl.h.

◆ m_VoxelSizeZ

IfcNonNegativeLengthMeasure OdIfc4x4::IfcVoxelGrid::m_VoxelSizeZ
protected

Definition at line 296 of file IfcVoxelGridAutoImpl.h.


The documentation for this class was generated from the following file: