CFx SDK Documentation
2023 SP0
|
#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) |
A class that implements working with an IFC model context.
Definition at line 46 of file IfcModelContext.h.
OdIfc::OdIfcModelContext::OdIfcModelContext | ( | OdIfcDeviationParams | params = OdIfcDeviationParams() , |
OdCmEntityColor | color = OdCmEntityColor::kNone |
||
) |
Creates a new model context object with specified deviation parameters and color.
params | [in] Deviation parameters. |
color | [in] Default model color value. |
OdCmEntityColor OdIfc::OdIfcModelContext::getDefaultEntityColor | ( | ) | const |
Retrieves the current default model color.
OdIfcDeviationParams OdIfc::OdIfcModelContext::getDeviationParams | ( | ) | const |
Retrieves the current set of deviation parameters assigned with the model context.
void OdIfc::OdIfcModelContext::setDefaultEntityColor | ( | const OdCmEntityColor & | color | ) |
Sets a new default model color.
color | [in] An instance of the <exref target="https://docs.opendesign.com/tkernel/OdCmEntityColor.html">OdCmEntityColor</exref> object that represents the new default color. |
void OdIfc::OdIfcModelContext::setDeviationParams | ( | OdIfcDeviationParams | params | ) |
Sets new deviation parameters for the model context.
params | [in] Deviation parameters to be set. |