|
CFx SDK Documentation 2026 SP0
|
#include <IfcSurfaceStyleRenderingAutoImpl.h>
Public Member Functions | |
| IfcColourOrFactor | diffuseColour () |
| IfcColourOrFactor | transmissionColour () |
| IfcColourOrFactor | diffuseTransmissionColour () |
| IfcColourOrFactor | reflectionColour () |
| IfcColourOrFactor | specularColour () |
| IfcSpecularHighlightSelect | specularHighlight () |
| IfcReflectanceMethodEnum | getReflectanceMethod () const |
| void | setReflectanceMethod (IfcReflectanceMethodEnum ReflectanceMethod) |
| IfcSurfaceStyleRendering () | |
| 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 OdIfc4x2::IfcSurfaceStyleShading | |
| const OdDAIObjectId & | getSurfaceColour () const |
| void | setSurfaceColour (const OdDAIObjectId &SurfaceColour) |
| double | getTransparency () const |
| void | setTransparency (double Transparency) |
| IfcSurfaceStyleShading () | |
Public Member Functions inherited from OdIfc4x2::OdIfc4x2Instance | |
| 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::Select | m_DiffuseColour |
| OdDAI::Select | m_TransmissionColour |
| OdDAI::Select | m_DiffuseTransmissionColour |
| OdDAI::Select | m_ReflectionColour |
| OdDAI::Select | m_SpecularColour |
| OdDAI::Select | m_SpecularHighlight |
| OdDAI::Enum | m_ReflectanceMethod |
Protected Attributes inherited from OdIfc4x2::IfcSurfaceStyleShading | |
| OdDAIObjectId | m_SurfaceColour |
| IfcNormalisedRatioMeasure | m_Transparency |
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) |
IfcSurfaceStyleRendering holds the properties for visualization related to a particular surface side style. Three lighting models are supported: Phong lighting model Physically-based lighting model Flat lighting model that ignores light sources
The material parameters are specified as scalars or RGB colors. Every material parameter can be adjusted using a texture. This allows to vary this parameter across the surface.
Definition at line 47 of file Ifc4x2/IfcSurfaceStyleRenderingAutoImpl.h.
| OdIfc4x2::IfcSurfaceStyleRendering::IfcSurfaceStyleRendering | ( | ) |
Default constructor for the IfcSurfaceStyleRendering class.
| IfcColourOrFactor OdIfc4x2::IfcSurfaceStyleRendering::diffuseColour | ( | ) |
Returns the value of DiffuseColour attribute. This attribute represents the diffuse color part of the reflectance. The diffuse colour field reflects all light sources depending on the angle of the surface with respect to the light source. The more directly the surface faces the light, the more diffuse light reflects. The diffuse colour is then defined by surface colour * diffuse factor.
| IfcColourOrFactor OdIfc4x2::IfcSurfaceStyleRendering::diffuseTransmissionColour | ( | ) |
Returns the value of DiffuseTransmissionColour attribute. This attribute represents the diffuse transmission color part of the reflectance. It only applies to materials where Transparency field is greater than zero. The diffuse transmission colour specifies how much diffuse light is reflected at the opposite side of the material surface. The diffuse transmission factor field specifies how much diffuse light from light sources this surface reflects on the opposite side of the material surface. The diffuse transmissive colour is then defined by surface colour * diffuse transmissive factor.
|
overridevirtual |
Returns an attribute value for the specified attribute name.
| attrName | [in] Name of an attribute to query. |
Reimplemented from OdIfc4x2::IfcSurfaceStyleShading.
|
overridevirtual |
Returns an attribute value for the specified attribute definition.
| attrDef | [in] Attribute definition to query. |
Reimplemented from OdIfc4x2::IfcSurfaceStyleShading.
|
overridevirtual |
Returns a type of a class instance.
Reimplemented from OdIfc4x2::IfcSurfaceStyleShading.
| IfcReflectanceMethodEnum OdIfc4x2::IfcSurfaceStyleRendering::getReflectanceMethod | ( | ) | const |
Returns the value of ReflectanceMethod attribute. This attribute represents the predefined types of reflectance method from which the required method can be set.
|
overridevirtual |
Reads object's data from the specified filer.
| rdFiler | [in] Pointer to a filer from which to read the data. |
Reimplemented from OdIfc4x2::IfcSurfaceStyleShading.
|
overridevirtual |
Checks whether the specified instance is the object derived from or belongs to this class.
| entityType | [in] Entity to check. |
Reimplemented from OdIfc4x2::IfcSurfaceStyleShading.
|
overridevirtual |
Writes object's data the the specified filer.
| wrFiler | [in] Pointer to a filer to which to write the data. |
Reimplemented from OdIfc4x2::IfcSurfaceStyleShading.
|
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 OdIfc4x2::IfcSurfaceStyleShading.
|
overridevirtual |
Sets the specified attribute with a given value.
| explicitAttrDef | [in] Explicit attribute definition to set. |
| val | [in] Value to set. |
Reimplemented from OdIfc4x2::IfcSurfaceStyleShading.
| IfcColourOrFactor OdIfc4x2::IfcSurfaceStyleRendering::reflectionColour | ( | ) |
Returns the value of ReflectionColour attribute. This attribute represents the reflection (or mirror) color part of the reflectance. Applies to "glass" and "mirror" reflection models. The reflection colour specifies the contribution made by light from the mirror direction, i.e. light being reflected from the surface. The reflection factor specifies the amount of contribution made by light from the mirror direction. The reflection colour is then defined by surface colour * reflection factor.
| void OdIfc4x2::IfcSurfaceStyleRendering::setReflectanceMethod | ( | IfcReflectanceMethodEnum | ReflectanceMethod | ) |
Sets the value of ReflectanceMethod attribute. This attribute represents the predefined types of reflectance method from which the required method can be set.
| ReflectanceMethod | [in] Reflectance method to set. |
| IfcColourOrFactor OdIfc4x2::IfcSurfaceStyleRendering::specularColour | ( | ) |
Returns the value of SpecularColour attribute. This attribute represents the specular color part of the reflectance. The specular colour determines the specular highlights (e.g., the shiny spots on an apple). When the angle from the light to the surface is close to the angle from the surface to the viewer, the specular colour is added to the diffuse and ambient colour calculations. The specular factor defines the specular part, the specular colour is then defined by surface colour * specular factor.
| IfcSpecularHighlightSelect OdIfc4x2::IfcSurfaceStyleRendering::specularHighlight | ( | ) |
Returns the value of SpecularHighlight attribute. This attribute represents the exponent or roughness part of the specular reflectance.
|
overridevirtual |
Checks whether the specified attribute is set.
| explicitAttrName | [in] Explicit name of the attribute to test. |
Reimplemented from OdIfc4x2::IfcSurfaceStyleShading.
|
overridevirtual |
Checks whether the specified attribute is set.
| explicitAttrDef | [in] Attribute definition to test. |
Reimplemented from OdIfc4x2::IfcSurfaceStyleShading.
| IfcColourOrFactor OdIfc4x2::IfcSurfaceStyleRendering::transmissionColour | ( | ) |
Returns the value of TransmissionColour attribute. This attribute represents the transmissive color part of the reflectance. It only applies to materials where Transparency field is greater than zero. The transmissive colour field specifies the colour that passes through a transparant material (like the colour that shines through a glass). The transmissive factor defines the transmissive part, the transmissive colour is then defined by surface colour * transmissive factor.
|
overridevirtual |
Returns the type of this entity.
Reimplemented from OdIfc4x2::IfcSurfaceStyleShading.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrName | [in] Explicit name of the attribute to reset. |
Reimplemented from OdIfc4x2::IfcSurfaceStyleShading.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrDef | [in] Explicit definition that represents an attribute to reset. |
Reimplemented from OdIfc4x2::IfcSurfaceStyleShading.
|
protected |
Definition at line 252 of file Ifc4x2/IfcSurfaceStyleRenderingAutoImpl.h.
|
protected |
Definition at line 254 of file Ifc4x2/IfcSurfaceStyleRenderingAutoImpl.h.
|
protected |
Definition at line 258 of file Ifc4x2/IfcSurfaceStyleRenderingAutoImpl.h.
|
protected |
Definition at line 255 of file Ifc4x2/IfcSurfaceStyleRenderingAutoImpl.h.
|
protected |
Definition at line 256 of file Ifc4x2/IfcSurfaceStyleRenderingAutoImpl.h.
|
protected |
Definition at line 257 of file Ifc4x2/IfcSurfaceStyleRenderingAutoImpl.h.
|
protected |
Definition at line 253 of file Ifc4x2/IfcSurfaceStyleRenderingAutoImpl.h.