#include <IfcVoxelGridAutoImpl.h>
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.
◆ IfcVoxelGrid()
| OdIfc4x4::IfcVoxelGrid::IfcVoxelGrid |
( |
| ) |
|
◆ 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.
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]
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()
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]
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]
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()
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]
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.
◆ m_NumberOfVoxelsX
| int OdIfc4x4::IfcVoxelGrid::m_NumberOfVoxelsX |
|
protected |
◆ m_NumberOfVoxelsY
| int OdIfc4x4::IfcVoxelGrid::m_NumberOfVoxelsY |
|
protected |
◆ m_NumberOfVoxelsZ
| int OdIfc4x4::IfcVoxelGrid::m_NumberOfVoxelsZ |
|
protected |
◆ m_Voxels
| OdDAI::ListOfBoolean OdIfc4x4::IfcVoxelGrid::m_Voxels |
|
protected |
◆ m_VoxelSizeX
◆ m_VoxelSizeY
◆ m_VoxelSizeZ
The documentation for this class was generated from the following file: