CFx SDK Documentation 2024 SP0
|
#include <GiViewportTraitsData.h>
Static Public Member Functions | |
static bool | compareToneOps (const OdGiToneOperatorParametersPtr &op1, const OdGiToneOperatorParametersPtr &op2) |
Corresponding C++ library: TD_Gi <group OdGi_Classes>
Definition at line 39 of file GiViewportTraitsData.h.
|
inline |
Default constructor for the OdGiToneOperatorParameters class. Initializes the following data members:
Value Description m_backgroundId NULL Viewport background identifier. m_bDefLightOn false Default lighting usage (on/off). m_lightType OdGiViewportTraits::kOneDistantLight Default Lighting type. m_userDefLightDir OdGeVector3d::kZAxis User-defined light direction. m_defLightIntensity 0.5 Default lighting intensity. m_defLightColor (255, 255, 255) Default lighting color. m_defShadowParams setShadowsOn(false) Shadow parameters for default lighting. m_colorAmbient - Ambient color. m_dBrightness 50.0 Overall viewport brightness. m_dContrast 50.0 Overall viewport contrast. m_renderEnvId NULL Render environment identifier. m_renderSettings NULL Render settings identifier. m_visualStyle NULL Visual style identifier. m_pToneOperators default settings* Tone operator parameters. Default settings are set internally with the createObject method.
Definition at line 78 of file GiViewportTraitsData.h.
|
inline |
Retrieves the ambient color (color in the shadows).
Definition at line 242 of file GiViewportTraitsData.h.
|
inline |
Retrieves a pointer to the background for this viewport.
Definition at line 117 of file GiViewportTraitsData.h.
|
inline |
Retrieves the brightness for this viewport.
Definition at line 259 of file GiViewportTraitsData.h.
|
inlinestatic |
Compares tone parameters (static and non-static) for the viewport.
op1 | [in] First tone operator to compare. |
op2 | [in] Second tone operator to compare. |
Definition at line 384 of file GiViewportTraitsData.h.
|
inline |
Retrieves the overall contrast for this viewport.
Definition at line 276 of file GiViewportTraitsData.h.
|
inline |
Retrieves the default lighting color.
Definition at line 196 of file GiViewportTraitsData.h.
|
inline |
Retrieves the intensity of default lighting.
Definition at line 179 of file GiViewportTraitsData.h.
|
inline |
Retrieves the default lighting shadow parameters.
Definition at line 215 of file GiViewportTraitsData.h.
|
inline |
Retrieves the default lighting type.
Definition at line 153 of file GiViewportTraitsData.h.
|
inline |
Checks whether default lighting is turned on.
Definition at line 136 of file GiViewportTraitsData.h.
|
inline |
Inequality operator for the OdGiViewportTraitsData class. Traits are considered not equal if at least one of the following condition fails: Background identifiers are equal; Default lighting state flags are equal; User-defined light directions are equal; Default lighting intensity values are equal; Default lighting colors are equal; Ambient lighting colors are equal; Brightness values are equal. Contrast values are equal. Render environment identifiers are equal. Render settings identifiers are equal. Render environment identifiers are equal. Visual style identifiers are equal. Tone operators are equal.
data2 | [in] Viewport traits to compare. |
Definition at line 453 of file GiViewportTraitsData.h.
|
inline |
Equality operator for the OdGiViewportTraitsData class. Traits are considered equal if: Background identifiers are equal; Default lighting state flags are equal; User-defined light directions are equal; Default lighting intensity values are equal; Default lighting colors are equal; Ambient lighting colors are equal; Brightness values are equal. Contrast values are equal. Render environment identifiers are equal. Render settings identifiers are equal. Render environment identifiers are equal. Visual style identifiers are equal. Tone operators are equal.
data2 | [in] Viewport traits to compare. |
Definition at line 416 of file GiViewportTraitsData.h.
|
inline |
Retrieves a pointer to the render environment for this viewport. Used only in full renders.
Definition at line 293 of file GiViewportTraitsData.h.
|
inline |
Retrieves a pointer to the render settings for this viewport. Used only in full renders.
Definition at line 310 of file GiViewportTraitsData.h.
|
inline |
Sets the ambient color (color in the shadows) for this viewport.
clr | [in] Ambient color. |
Definition at line 235 of file GiViewportTraitsData.h.
|
inline |
Sets the background for this viewport.
backgroundId | [in] Pointer to the background. |
Definition at line 108 of file GiViewportTraitsData.h.
|
inline |
Sets the brightness for this viewport.
brightness | [in] Brightness value. |
Definition at line 252 of file GiViewportTraitsData.h.
|
inline |
Sets the overall contrast for this viewport.
contrast | [in] Light contrast value. |
Definition at line 269 of file GiViewportTraitsData.h.
|
inline |
Sets the color of default lighting.
color | [in] Default lighting color. |
Definition at line 204 of file GiViewportTraitsData.h.
|
inline |
Sets the intensity of default lighting.
dIntensity | [in] Default lighting intensity. |
Definition at line 187 of file GiViewportTraitsData.h.
|
inline |
Enables or disables the default lighting.
on | [in] Flag that specifies whether to enable the default lighting. |
Definition at line 127 of file GiViewportTraitsData.h.
|
inline |
Sets the default lighting shadow parameters.
params | [in] Shadow parameters. |
Definition at line 225 of file GiViewportTraitsData.h.
|
inline |
Sets the default lighting type.
typ | [in] One of the default lighting types. |
Definition at line 146 of file GiViewportTraitsData.h.
|
inline |
Sets the render environment for this viewport. Used only in full renders.
renderEnvId | [in] Pointer to the render environment. |
Definition at line 286 of file GiViewportTraitsData.h.
|
inline |
Sets the render settings for this viewport. Used only in full renders.
renderSettingsId | [in] Pointer to the render settings. |
Definition at line 303 of file GiViewportTraitsData.h.
|
inline |
Sets the tone parameters for this viewport.
params | [in] Tone operator parameters. |
Definition at line 342 of file GiViewportTraitsData.h.
|
inline |
Sets the user-defined light direction for distant lights.
lightDirection | [in] Vector that specifies the light direction. |
Definition at line 170 of file GiViewportTraitsData.h.
|
inline |
Sets the visual style for this viewport. Used only in full renders.
visualStyleId | [in] Pointer to the render settings. |
Definition at line 322 of file GiViewportTraitsData.h.
|
inline |
Retrieves tone parameters for this viewport.
Definition at line 372 of file GiViewportTraitsData.h.
|
inline |
Retrieves tone parameters for this viewport.
params | [out] Receives tone operator parameters. |
Definition at line 361 of file GiViewportTraitsData.h.
|
inline |
Retrieves drawable type which is OdGiDrawable::kViewport for this object.
Definition at line 100 of file GiViewportTraitsData.h.
|
inline |
Retrieves the user-defined light direction for distant lights.
Definition at line 162 of file GiViewportTraitsData.h.
|
inline |
Retrieves a pointer to the visual style for this viewport. Used only in full renders.
Definition at line 332 of file GiViewportTraitsData.h.