CFx SDK Documentation  2020SP3
Public Member Functions | List of all members
OdIfc::OdIfcModelContext Class Reference

#include <IfcModelContext.h>

Public Member Functions

 OdIfcModelContext (OdIfcDeviationParams params=OdIfcDeviationParams(), OdCmEntityColor color=OdCmEntityColor::kNone)
 
OdIfcDeviationParams getDeviationParams () const
 
void setDeviationParams (OdIfcDeviationParams params)
 
OdCmEntityColor getDefaultEntityColor () const
 
void setDefaultEntityColor (const OdCmEntityColor &color)
 

Detailed Description

A class that implements working with an IFC model context.

Definition at line 46 of file IfcModelContext.h.

Constructor & Destructor Documentation

◆ OdIfcModelContext()

OdIfc::OdIfcModelContext::OdIfcModelContext ( OdIfcDeviationParams  params = OdIfcDeviationParams(),
OdCmEntityColor  color = OdCmEntityColor::kNone 
)

Creates a new model context object with specified deviation parameters and color.

Parameters
params[in] Deviation parameters.
color[in] Default model color value.

Member Function Documentation

◆ getDefaultEntityColor()

OdCmEntityColor OdIfc::OdIfcModelContext::getDefaultEntityColor ( ) const

Retrieves the current default model color.

Returns
Returns an instance of the <exref target="https://docs.opendesign.com/tkernel/OdCmEntityColor.html">OdCmEntityColor</exref> object that contains the current default color for the model.

◆ getDeviationParams()

OdIfcDeviationParams OdIfc::OdIfcModelContext::getDeviationParams ( ) const

Retrieves the current set of deviation parameters assigned with the model context.

Returns
Returns an instance of the <link OdIfc::OdIfcDeviationParams, OdIfcDeviationParams> class that contains the current deviation parameters.

◆ setDefaultEntityColor()

void OdIfc::OdIfcModelContext::setDefaultEntityColor ( const OdCmEntityColor color)

Sets a new default model color.

Parameters
color[in] An instance of the <exref target="https://docs.opendesign.com/tkernel/OdCmEntityColor.html">OdCmEntityColor</exref> object that represents the new default color.

◆ setDeviationParams()

void OdIfc::OdIfcModelContext::setDeviationParams ( OdIfcDeviationParams  params)

Sets new deviation parameters for the model context.

Parameters
params[in] Deviation parameters to be set.

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