CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdIfc2x3::IfcPixelTexture Class Reference

#include <IfcPixelTextureAutoImpl.h>

Inheritance diagram for OdIfc2x3::IfcPixelTexture:
OdIfc2x3::IfcSurfaceTexture OdIfc2x3::OdIfc2x3Instance OdIfc::OdIfcInstance

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 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 OdIfc2x3::IfcSurfaceTexture
OdDAI::Boolean getRepeatS () const
 
void setRepeatS (OdDAI::Boolean RepeatS)
 
OdDAI::Boolean getRepeatT () const
 
void setRepeatT (OdDAI::Boolean RepeatT)
 
IfcSurfaceTextureEnum getTextureType () const
 
void setTextureType (IfcSurfaceTextureEnum TextureType)
 
const OdDAIObjectId & getTextureTransform () const
 
void setTextureTransform (const OdDAIObjectId &TextureTransform)
 
 IfcSurfaceTexture ()
 
- Public Member Functions inherited from OdIfc2x3::OdIfc2x3Instance
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

int m_Width
 
int m_Height
 
int m_ColourComponents
 
OdDAI::ListOfBinary m_Pixel
 
- Protected Attributes inherited from OdIfc2x3::IfcSurfaceTexture
OdDAI::Boolean m_RepeatS
 
OdDAI::Boolean m_RepeatT
 
OdDAI::Enum m_TextureType
 
OdDAIObjectId m_TextureTransform
 
- 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

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.

Definition at line 51 of file Ifc2x3/IfcPixelTextureAutoImpl.h.

Constructor & Destructor Documentation

◆ IfcPixelTexture()

OdIfc2x3::IfcPixelTexture::IfcPixelTexture ( )

Default constructor for the IfcPixelTexture class.

Member Function Documentation

◆ comparedToEarlyImpl()

virtual bool OdIfc2x3::IfcPixelTexture::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 OdIfc2x3::IfcSurfaceTexture.

◆ getAttr() [1/2]

virtual OdRxValue OdIfc2x3::IfcPixelTexture::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.

Reimplemented from OdIfc2x3::IfcSurfaceTexture.

◆ getAttr() [2/2]

virtual OdRxValue OdIfc2x3::IfcPixelTexture::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 OdIfc2x3::IfcSurfaceTexture.

◆ getColourComponents()

int OdIfc2x3::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.

Returns
Returns the value of ColourComponents attribute.

◆ getHeight()

int OdIfc2x3::IfcPixelTexture::getHeight ( ) const

Returns the value of Height attribute. This attribute represents the number of pixels in height (T) direction.

Returns
Returns the value of Height attribute.

◆ getInstanceType()

virtual OdDAI::Entity * OdIfc2x3::IfcPixelTexture::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 OdIfc2x3::IfcSurfaceTexture.

◆ getPixel()

void OdIfc2x3::IfcPixelTexture::getPixel ( OdArray< OdDAI::Binary > & Pixel) const

Gets the value of Pixel attribute. This attribute represents list of hexadecimal values, each describing one pixel by 1, 2, 3, or 4 components.

Parameters
Pixel[out] Receives the Pixel attribute.

◆ getWidth()

int OdIfc2x3::IfcPixelTexture::getWidth ( ) const

Returns the value of Width attribute. This attribute represents the number of pixels in width (S) direction.

Returns
Returns the value of Width attribute.

◆ inFields()

virtual OdResult OdIfc2x3::IfcPixelTexture::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 OdIfc2x3::IfcSurfaceTexture.

◆ isKindOf()

virtual bool OdIfc2x3::IfcPixelTexture::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 OdIfc2x3::IfcSurfaceTexture.

◆ outFields()

virtual OdResult OdIfc2x3::IfcPixelTexture::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 OdIfc2x3::IfcSurfaceTexture.

◆ pixel()

OdDAI::ListOfBinary & OdIfc2x3::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.

Returns
Returns the value of Pixel attribute.

◆ putAttr() [1/2]

virtual bool OdIfc2x3::IfcPixelTexture::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 OdIfc2x3::IfcSurfaceTexture.

◆ putAttr() [2/2]

virtual bool OdIfc2x3::IfcPixelTexture::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 OdIfc2x3::IfcSurfaceTexture.

◆ setColourComponents()

void OdIfc2x3::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.

Parameters
ColourComponents[in] Colour components to set.

◆ setHeight()

void OdIfc2x3::IfcPixelTexture::setHeight ( int Height)

Sets the value of Height attribute. This attribute represents the number of pixels in height (T) direction.

Parameters
Height[in] Height to set.

◆ setWidth()

void OdIfc2x3::IfcPixelTexture::setWidth ( int Width)

Sets the value of Width attribute. This attribute represents the number of pixels in width (S) direction.

Parameters
Width[in] Width to set.

◆ testAttr() [1/2]

virtual bool OdIfc2x3::IfcPixelTexture::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 OdIfc2x3::IfcSurfaceTexture.

◆ testAttr() [2/2]

virtual bool OdIfc2x3::IfcPixelTexture::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 OdIfc2x3::IfcSurfaceTexture.

◆ type()

virtual OdIfc::OdIfcEntityType OdIfc2x3::IfcPixelTexture::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 OdIfc2x3::IfcSurfaceTexture.

◆ unsetAttr() [1/2]

virtual void OdIfc2x3::IfcPixelTexture::unsetAttr ( const char * explicitAttrName)
overridevirtual

Resets a value for the specified attribute.

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

Reimplemented from OdIfc2x3::IfcSurfaceTexture.

◆ unsetAttr() [2/2]

virtual void OdIfc2x3::IfcPixelTexture::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 OdIfc2x3::IfcSurfaceTexture.

Member Data Documentation

◆ m_ColourComponents

int OdIfc2x3::IfcPixelTexture::m_ColourComponents
protected

Definition at line 256 of file Ifc2x3/IfcPixelTextureAutoImpl.h.

◆ m_Height

int OdIfc2x3::IfcPixelTexture::m_Height
protected

Definition at line 255 of file Ifc2x3/IfcPixelTextureAutoImpl.h.

◆ m_Pixel

OdDAI::ListOfBinary OdIfc2x3::IfcPixelTexture::m_Pixel
protected

Definition at line 257 of file Ifc2x3/IfcPixelTextureAutoImpl.h.

◆ m_Width

int OdIfc2x3::IfcPixelTexture::m_Width
protected

Definition at line 254 of file Ifc2x3/IfcPixelTextureAutoImpl.h.


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