|
CFx SDK Documentation 2026 SP0
|
#include <IfcSurfaceTextureAutoImpl.h>
Public Member Functions | |
| 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 () | |
| 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::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 | |
| 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 |
Friends | |
| class | IfcTextureCoordinate |
| class | IfcSurfaceStyleWithTextures |
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 IfcSurfaceTexture provides a 2-dimensional image-based texture map. It can either be given by referencing an external image file through an URL reference (IfcImageTexture), including the image file as a blob (long binary) into the data set (IfcBlobTexture), or by explicitly including an array of pixels (IfcPixelTexture).
<IMAGE ifc_surface_texture_example1>
Texture maps are defined in a 2D coordinate system (s, t) that ranges from [0.0, 1.0] in both directions. The bottom edge of the image corresponds to the S-axis of the texture map, and left edge of the image corresponds to the T-axis of the texture map. The lower-left pixel of the image corresponds to s=0, t=0, and the top-right pixel of the image corresponds to s=1, t=1. Texture maps can be viewed as two dimensional colour functions that, given an (s, t) coordinate, return a colour value colour(s, t).
\changes
IFC4 changes: Type of the RepeatS attribute changed from boolean to IfcBoolean. Type of the RepeatT attribute changed from boolean to IfcBoolean. Name of the TextureType attribute changed to Mode. Attribute TextureType is optional. Type of the TextureType attribute changed from IfcSurfaceTextureEnum to IfcIdentifier.
Definition at line 73 of file Ifc4x1/IfcSurfaceTextureAutoImpl.h.
| OdIfc4x1::IfcSurfaceTexture::IfcSurfaceTexture | ( | ) |
Default constructor for the IfcSurfaceTexture class.
|
overridevirtual |
Returns an attribute value for the specified attribute name.
| attrName | [in] Name of an attribute to query. |
Reimplemented in OdIfc4x1::IfcBlobTexture, OdIfc4x1::IfcImageTexture, and OdIfc4x1::IfcPixelTexture.
|
overridevirtual |
Returns an attribute value for the specified attribute definition.
| attrDef | [in] Attribute definition to query. |
Reimplemented from OdIfc::OdIfcInstance.
Reimplemented in OdIfc4x1::IfcBlobTexture, OdIfc4x1::IfcImageTexture, and OdIfc4x1::IfcPixelTexture.
|
overridevirtual |
Returns a type of a class instance.
Reimplemented from OdIfc4x1::IfcPresentationItem.
Reimplemented in OdIfc4x1::IfcBlobTexture, OdIfc4x1::IfcImageTexture, and OdIfc4x1::IfcPixelTexture.
| void OdIfc4x1::IfcSurfaceTexture::getInvIsMappedBy | ( | OdDAIObjectIds & | IsMappedBy | ) | const |
Returns the value of IsMappedBy attribute. IsMappedBy is texture coordinates, either provided by a corresponding list of texture vertices to vertex-based geometric items or by a texture coordinate generator, that applies the surface texture to the surfaces of the geometric items.
| IsMappedBy | [out] Receives the value of IsMappedBy attribute. |
| void OdIfc4x1::IfcSurfaceTexture::getInvUsedInStyles | ( | OdDAIObjectIds & | UsedInStyles | ) | const |
Returns the value of UsedInStyles attribute. This attribute represents an entity that allows to include image textures in surface styles.
| UsedInStyles | [out] Receives the value of UsedInStyles attribute. |
| const OdAnsiString & OdIfc4x1::IfcSurfaceTexture::getMode | ( | ) | const |
Returns the value of Mode attribute. This attribute is provided to control the appearance of a multi-textures. The mode then controls the type of blending operation. The mode includes a MODULATE for a lit appearance, a REPLACE for an unlit appearance, and variations of both.
Returns the value of Parameter attribute. This attribute is provided to control the appearance of a multi textures. The applicable parameters depend on the value of the Mode attribute.
| Parameter | [out] Parameter to set. |
| OdDAI::Boolean OdIfc4x1::IfcSurfaceTexture::getRepeatS | ( | ) | const |
Returns the value of RepeatS attribute. RepeatS is the field that specifies how the texture wraps in the S direction. If RepeatS is TRUE (the default case), the texture map is repeated outside the [0.0, 1.0] texture coordinate range in the S direction so that it fills the shape. If RepeatS is FALSE, the texture coordinates are clamped in the S direction to lie within the [0.0, 1.0] range.
| OdDAI::Boolean OdIfc4x1::IfcSurfaceTexture::getRepeatT | ( | ) | const |
Returns the value of RepeatT attribute. RepeatT is the field that specifies how the texture wraps in the T direction. If RepeatT is TRUE (the default), the texture map is repeated outside the [0.0, 1.0] texture coordinate range in the T direction so that it fills the shape. If RepeatT is FALSE, the texture coordinates are clamped in the T direction to lie within the [0.0, 1.0] range.
| const OdDAIObjectId & OdIfc4x1::IfcSurfaceTexture::getTextureTransform | ( | ) | const |
Returns the value of TextureTransform attribute. TextureTransform attribute defines a 2D transformation that is applied to the texture coordinates. It affects the way texture coordinates are applied to the surfaces of geometric representation items. The 2D transformation supports changes to the size, orientation, and position of textures on shapes. Mirroring is not allowed to be used in the IfcCartesianTransformationOperator.
|
overridevirtual |
Reads object's data from the specified filer.
| rdFiler | [in] Pointer to a filer from which to read the data. |
Reimplemented in OdIfc4x1::IfcBlobTexture, OdIfc4x1::IfcImageTexture, and OdIfc4x1::IfcPixelTexture.
|
overridevirtual |
Checks whether the specified instance is the object derived from or belongs to this class.
| entityType | [in] Entity to check. |
Reimplemented from OdIfc4x1::IfcPresentationItem.
Reimplemented in OdIfc4x1::IfcBlobTexture, OdIfc4x1::IfcImageTexture, and OdIfc4x1::IfcPixelTexture.
|
overridevirtual |
Writes object's data the the specified filer.
| wrFiler | [in] Pointer to a filer to which to write the data. |
Reimplemented in OdIfc4x1::IfcBlobTexture, OdIfc4x1::IfcImageTexture, and OdIfc4x1::IfcPixelTexture.
| OdDAI::ListOfOdAnsiString & OdIfc4x1::IfcSurfaceTexture::parameter | ( | ) |
Returns the value of Parameter attribute. This attribute is provided to control the appearance of a multi textures. The applicable parameters depend on the value of the Mode attribute.
|
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 OdIfc::OdIfcInstance.
Reimplemented in OdIfc4x1::IfcBlobTexture, OdIfc4x1::IfcImageTexture, and OdIfc4x1::IfcPixelTexture.
|
overridevirtual |
Sets the specified attribute with a given value.
| explicitAttrDef | [in] Explicit attribute definition to set. |
| val | [in] Value to set. |
Reimplemented from OdIfc::OdIfcInstance.
Reimplemented in OdIfc4x1::IfcBlobTexture, OdIfc4x1::IfcImageTexture, and OdIfc4x1::IfcPixelTexture.
| void OdIfc4x1::IfcSurfaceTexture::setMode | ( | const OdAnsiString & | Mode | ) |
Sets the value of Mode attribute. This attribute is provided to control the appearance of a multi-textures. The mode then controls the type of blending operation. The mode includes a MODULATE for a lit appearance, a REPLACE for an unlit appearance, and variations of both.
| Mode | [in] Mode to set. |
| void OdIfc4x1::IfcSurfaceTexture::setRepeatS | ( | OdDAI::Boolean | RepeatS | ) |
Sets the value of RepeatS attribute. RepeatS is the field that specifies how the texture wraps in the S direction. If RepeatS is TRUE (the default), the texture map is repeated outside the [0.0, 1.0] texture coordinate range in the S direction so that it fills the shape. If RepeatS is FALSE, the texture coordinates are clamped in the S direction to lie within the [0.0, 1.0] range.
| RepeatS | [in] RepeatS attribute to set. |
| void OdIfc4x1::IfcSurfaceTexture::setRepeatT | ( | OdDAI::Boolean | RepeatT | ) |
Sets the value of RepeatT attribute. RepeatT is the field that specifies how the texture wraps in the T direction. If RepeatT is TRUE (the default), the texture map is repeated outside the [0.0, 1.0] texture coordinate range in the T direction so that it fills the shape. If RepeatT is FALSE, the texture coordinates are clamped in the T direction to lie within the [0.0, 1.0] range.
| RepeatT | [in] RepeatT to set. |
| void OdIfc4x1::IfcSurfaceTexture::setTextureTransform | ( | const OdDAIObjectId & | TextureTransform | ) |
Sets the value of TextureTransform attribute. TextureTransform attribute defines a 2D transformation that is applied to the texture coordinates. It affects the way texture coordinates are applied to the surfaces of geometric representation items. The 2D transformation supports changes to the size, orientation, and position of textures on shapes. Mirroring is not allowed to be used in the IfcCartesianTransformationOperator.
| TextureTransform | [in] TextureTransform to set. |
|
overridevirtual |
Checks whether the specified attribute is set.
| explicitAttrName | [in] Explicit name of the attribute to test. |
Reimplemented from OdIfc::OdIfcInstance.
Reimplemented in OdIfc4x1::IfcBlobTexture, OdIfc4x1::IfcImageTexture, and OdIfc4x1::IfcPixelTexture.
|
overridevirtual |
Checks whether the specified attribute is set.
| explicitAttrDef | [in] Attribute definition to test. |
Reimplemented from OdIfc::OdIfcInstance.
Reimplemented in OdIfc4x1::IfcBlobTexture, OdIfc4x1::IfcImageTexture, and OdIfc4x1::IfcPixelTexture.
|
overridevirtual |
Returns the type of this entity.
Reimplemented from OdIfc4x1::IfcPresentationItem.
Reimplemented in OdIfc4x1::IfcBlobTexture, OdIfc4x1::IfcImageTexture, and OdIfc4x1::IfcPixelTexture.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrName | [in] Explicit name of the attribute to reset. |
Reimplemented from OdIfc::OdIfcInstance.
Reimplemented in OdIfc4x1::IfcBlobTexture, OdIfc4x1::IfcImageTexture, and OdIfc4x1::IfcPixelTexture.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrDef | [in] Explicit definition that represents an attribute to reset. |
Reimplemented from OdIfc::OdIfcInstance.
Reimplemented in OdIfc4x1::IfcBlobTexture, OdIfc4x1::IfcImageTexture, and OdIfc4x1::IfcPixelTexture.
|
friend |
Definition at line 326 of file Ifc4x1/IfcSurfaceTextureAutoImpl.h.
|
friend |
Definition at line 325 of file Ifc4x1/IfcSurfaceTextureAutoImpl.h.
|
protected |
Definition at line 319 of file Ifc4x1/IfcSurfaceTextureAutoImpl.h.
|
protected |
Definition at line 321 of file Ifc4x1/IfcSurfaceTextureAutoImpl.h.
|
protected |
Definition at line 317 of file Ifc4x1/IfcSurfaceTextureAutoImpl.h.
|
protected |
Definition at line 318 of file Ifc4x1/IfcSurfaceTextureAutoImpl.h.
|
protected |
Definition at line 320 of file Ifc4x1/IfcSurfaceTextureAutoImpl.h.