|
CFx SDK Documentation 2026 SP0
|
#include <IfcPixelTextureAutoImpl.h>
Public Member Functions | |
| int | getWidth () const |
| void | setWidth (int Width) |
| int | getHeight () const |
| void | setHeight (int Height) |
| int | getColourComponents () const |
| void | setColourComponents (int ColourComponents) |
| void | getPixel (OdArray< OdDAI::Binary > &Pixel) const |
| OdDAI::ListOfBinary & | pixel () |
| IfcPixelTexture () | |
| 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 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 OdIfc4x1::IfcSurfaceTexture | |
| OdDAI::Boolean | getRepeatS () const |
| void | setRepeatS (OdDAI::Boolean RepeatS) |
| OdDAI::Boolean | getRepeatT () const |
| void | setRepeatT (OdDAI::Boolean RepeatT) |
| const OdAnsiString & | getMode () const |
| void | setMode (const OdAnsiString &Mode) |
| const OdDAIObjectId & | getTextureTransform () const |
| void | setTextureTransform (const OdDAIObjectId &TextureTransform) |
| void | getParameter (OdArray< OdAnsiString > &Parameter) const |
| OdDAI::ListOfOdAnsiString & | parameter () |
| void | getInvIsMappedBy (OdDAIObjectIds &IsMappedBy) const |
| void | getInvUsedInStyles (OdDAIObjectIds &UsedInStyles) const |
| IfcSurfaceTexture () | |
Public Member Functions inherited from OdIfc4x1::OdIfc4x1Instance | |
| 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 OdGsCache * | gsNode () const |
| virtual OdUInt32 | subSetAttributes (OdGiDrawableTraits *traits) const |
| virtual bool | subWorldDraw (OdGiWorldDraw *wd) const |
| virtual OdDbStub * | ownerId () const |
Protected Attributes | |
| int | m_Width |
| int | m_Height |
| int | m_ColourComponents |
| OdDAI::ListOfBinary | m_Pixel |
Protected Attributes inherited from OdIfc4x1::IfcSurfaceTexture | |
| OdDAI::Boolean | m_RepeatS |
| OdDAI::Boolean | m_RepeatT |
| OdAnsiString | m_Mode |
| OdDAIObjectId | m_TextureTransform |
| OdDAI::ListOfOdAnsiString | m_Parameter |
Protected Attributes inherited from OdIfc::OdIfcInstance | |
| void * | m_resPtr |
| IfcOpResult | m_resolved |
Additional Inherited Members | |
Static Public Member Functions inherited from OdIfc::OdIfcInstance | |
| static const OdGePoint3d * | asPoint3d (const OdIfcInstance *inst) |
| static const OdGePoint2d * | asPoint2d (const OdIfcInstance *inst) |
| static const OdGeVector3d * | asVector3d (const OdIfcInstance *inst) |
| static const OdGeVector2d * | asVector2d (const OdIfcInstance *inst) |
| static const OdGeMatrix2d * | asMatrix2d (const OdIfcInstance *inst) |
| static const OdGeMatrix3d * | asMatrix3d (const OdIfcInstance *inst) |
| static OdIfcCompoundPtr | asCompound (OdSmartPtr< OdIfcInstance > inst) |
| static const OdCmEntityColor * | asRgbColor (const OdIfcInstance *inst) |
An IfcPixelTexture provides a 2D image-based texture map as an explicit array of pixel values (list of Pixel binary attributes). In contrary to the IfcImageTexture, the IfcPixelTexture holds a 2 dimensional list of pixel color (and opacity) directly, instead of referencing to an URL. The PixelTexture node defines a 2D image-based texture map as an explicit array of pixel values and parameters controlling tiling repetition of the texture onto geometry. Texture maps are defined in a 2D coordinate system (s, t) that ranges from 0.0 to 1.0 in both directions. The bottom edge of the pixel image corresponds to the S-axis of the texture map, and left edge of the pixel image corresponds to the T-axis of the texture map. The lower-left pixel of the pixel image corresponds to s=0.0, t=0.0, and the top-right pixel of the image corresponds to s = 1.0, t = 1.0. The Image field specifies a single uncompressed 2-dimensional pixel image. Image fields contain three integers representing the width, height and number of components in the image, followed by width * height hexadecimal values representing the pixels in the image. Pixel values are limited to 256 levels of intensity (that is, 0x00-0xFF hexadecimal). Alpha equals (1.0-transparency), if alpha and transparency each range from 0.0 to 1.0.
\changes
IFC4 changes: Type of the Pixel attribute changed from "list[1:?] of binary" to "list[1:?] of IfcBinary"
Definition at line 56 of file Ifc4x1/IfcPixelTextureAutoImpl.h.
| OdIfc4x1::IfcPixelTexture::IfcPixelTexture | ( | ) |
Default constructor for the IfcPixelTexture class.
|
overridevirtual |
Returns an attribute value for the specified attribute name.
| attrName | [in] Name of an attribute to query. |
Reimplemented from OdIfc4x1::IfcSurfaceTexture.
|
overridevirtual |
Returns an attribute value for the specified attribute definition.
| attrDef | [in] Attribute definition to query. |
Reimplemented from OdIfc4x1::IfcSurfaceTexture.
| int OdIfc4x1::IfcPixelTexture::getColourComponents | ( | ) | const |
Returns the value of ColourComponents attribute. This attribute indicates whether the pixel values contain a 1, 2, 3, or 4 colour component.
| int OdIfc4x1::IfcPixelTexture::getHeight | ( | ) | const |
Returns the value of Height attribute. This attribute represents the number of pixels in height (T) direction.
|
overridevirtual |
Returns a type of a class instance.
Reimplemented from OdIfc4x1::IfcSurfaceTexture.
Gets the value of Pixel attribute. This attribute represents list of hexadecimal values, each describing one pixel by 1, 2, 3, or 4 components.
| Pixel | [out] Receives the Pixel attribute. |
| int OdIfc4x1::IfcPixelTexture::getWidth | ( | ) | const |
Returns the value of Width attribute. This attribute represents the number of pixels in width (S) direction.
|
overridevirtual |
Reads object's data from the specified filer.
| rdFiler | [in] Pointer to a filer from which to read the data. |
Reimplemented from OdIfc4x1::IfcSurfaceTexture.
|
overridevirtual |
Checks whether the specified instance is the object derived from or belongs to this class.
| entityType | [in] Entity to check. |
Reimplemented from OdIfc4x1::IfcSurfaceTexture.
|
overridevirtual |
Writes object's data the the specified filer.
| wrFiler | [in] Pointer to a filer to which to write the data. |
Reimplemented from OdIfc4x1::IfcSurfaceTexture.
| OdDAI::ListOfBinary & OdIfc4x1::IfcPixelTexture::pixel | ( | ) |
Returns the value of Pixel attribute. This attribute represents list of hexadecimal values, each describing one pixel by 1, 2, 3, or 4 components.
|
overridevirtual |
Sets the specified attribute with a given value.
| explicitAttrName | [in] Explicit name of the attribute to set. |
| val | [in] Value to set. |
Reimplemented from OdIfc4x1::IfcSurfaceTexture.
|
overridevirtual |
Sets the specified attribute with a given value.
| explicitAttrDef | [in] Explicit attribute definition to set. |
| val | [in] Value to set. |
Reimplemented from OdIfc4x1::IfcSurfaceTexture.
| void OdIfc4x1::IfcPixelTexture::setColourComponents | ( | int | ColourComponents | ) |
Sets the value of ColourComponents attribute. This attribute indicates whether the pixel values contain a 1, 2, 3, or 4 colour component.
| ColourComponents | [in] Colour components to set. |
| void OdIfc4x1::IfcPixelTexture::setHeight | ( | int | Height | ) |
Sets the value of Height attribute. This attribute represents the number of pixels in height (T) direction.
| Height | [in] Height to set. |
| void OdIfc4x1::IfcPixelTexture::setWidth | ( | int | Width | ) |
Sets the value of Width attribute. This attribute represents the number of pixels in width (S) direction.
| Width | [in] Width to set. |
|
overridevirtual |
Checks whether the specified attribute is set.
| explicitAttrName | [in] Explicit name of the attribute to test. |
Reimplemented from OdIfc4x1::IfcSurfaceTexture.
|
overridevirtual |
Checks whether the specified attribute is set.
| explicitAttrDef | [in] Attribute definition to test. |
Reimplemented from OdIfc4x1::IfcSurfaceTexture.
|
overridevirtual |
Returns the type of this entity.
Reimplemented from OdIfc4x1::IfcSurfaceTexture.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrName | [in] Explicit name of the attribute to reset. |
Reimplemented from OdIfc4x1::IfcSurfaceTexture.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrDef | [in] Explicit definition that represents an attribute to reset. |
Reimplemented from OdIfc4x1::IfcSurfaceTexture.
|
protected |
Definition at line 242 of file Ifc4x1/IfcPixelTextureAutoImpl.h.
|
protected |
Definition at line 241 of file Ifc4x1/IfcPixelTextureAutoImpl.h.
|
protected |
Definition at line 243 of file Ifc4x1/IfcPixelTextureAutoImpl.h.
|
protected |
Definition at line 240 of file Ifc4x1/IfcPixelTextureAutoImpl.h.