Open CASCADE Technology 7.8.0
|
Structure defines list of ZLayer properties. More...
#include <Graphic3d_ZLayerSettings.hxx>
Public Member Functions | |
Graphic3d_ZLayerSettings () | |
Default settings. | |
const TCollection_AsciiString & | Name () const |
Return user-provided name. | |
void | SetName (const TCollection_AsciiString &theName) |
Set custom name. | |
const Handle< Graphic3d_LightSet > & | Lights () const |
Return lights list to be used for rendering presentations within this Z-Layer; NULL by default. NULL list (but not empty list!) means that default lights assigned to the View should be used instead of per-layer lights. | |
void | SetLights (const Handle< Graphic3d_LightSet > &theLights) |
Assign lights list to be used. | |
const gp_XYZ & | Origin () const |
Return the origin of all objects within the layer. | |
const Handle< TopLoc_Datum3D > & | OriginTransformation () const |
Return the transformation to the origin. | |
void | SetOrigin (const gp_XYZ &theOrigin) |
Set the origin of all objects within the layer. | |
Standard_Boolean | HasCullingDistance () const |
Return TRUE, if culling of distant objects (distance culling) should be performed; FALSE by default. | |
Standard_Real | CullingDistance () const |
Return the distance to discard drawing of distant objects (distance from camera Eye point); by default it is Infinite (distance culling is disabled). Since camera eye definition has no strong meaning within orthographic projection, option is considered only within perspective projection. Note also that this option has effect only when frustum culling is enabled. | |
void | SetCullingDistance (Standard_Real theDistance) |
Set the distance to discard drawing objects. | |
Standard_Boolean | HasCullingSize () const |
Return TRUE, if culling of small objects (size culling) should be performed; FALSE by default. | |
Standard_Real | CullingSize () const |
Return the size to discard drawing of small objects; by default it is Infinite (size culling is disabled). Current implementation checks the length of projected diagonal of bounding box in pixels for discarding. Note that this option has effect only when frustum culling is enabled. | |
void | SetCullingSize (Standard_Real theSize) |
Set the distance to discard drawing objects. | |
Standard_Boolean | IsImmediate () const |
Return true if this layer should be drawn after all normal (non-immediate) layers. | |
void | SetImmediate (const Standard_Boolean theValue) |
Set the flag indicating the immediate layer, which should be drawn after all normal (non-immediate) layers. | |
Standard_Boolean | IsRaytracable () const |
Returns TRUE if layer should be processed by ray-tracing renderer; TRUE by default. Note that this flag is IGNORED for layers with IsImmediate() flag. | |
void | SetRaytracable (Standard_Boolean theToRaytrace) |
Sets if layer should be processed by ray-tracing renderer. | |
Standard_Boolean | UseEnvironmentTexture () const |
Return flag to allow/prevent environment texture mapping usage for specific layer. | |
void | SetEnvironmentTexture (const Standard_Boolean theValue) |
Set the flag to allow/prevent environment texture mapping usage for specific layer. | |
Standard_Boolean | ToEnableDepthTest () const |
Return true if depth test should be enabled. | |
void | SetEnableDepthTest (const Standard_Boolean theValue) |
Set if depth test should be enabled. | |
Standard_Boolean | ToEnableDepthWrite () const |
Return true depth values should be written during rendering. | |
void | SetEnableDepthWrite (const Standard_Boolean theValue) |
Set if depth values should be written during rendering. | |
Standard_Boolean | ToClearDepth () const |
Return true if depth values should be cleared before drawing the layer. | |
void | SetClearDepth (const Standard_Boolean theValue) |
Set if depth values should be cleared before drawing the layer. | |
Standard_Boolean | ToRenderInDepthPrepass () const |
Return TRUE if layer should be rendered within depth pre-pass; TRUE by default. | |
void | SetRenderInDepthPrepass (Standard_Boolean theToRender) |
Set if layer should be rendered within depth pre-pass. | |
const Graphic3d_PolygonOffset & | PolygonOffset () const |
Return glPolygonOffset() arguments. | |
void | SetPolygonOffset (const Graphic3d_PolygonOffset &theParams) |
Setup glPolygonOffset() arguments. | |
Graphic3d_PolygonOffset & | ChangePolygonOffset () |
Modify glPolygonOffset() arguments. | |
void | SetDepthOffsetPositive () |
Sets minimal possible positive depth offset. | |
void | SetDepthOffsetNegative () |
Sets minimal possible negative depth offset. | |
void | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const |
Dumps the content of me into the stream. | |
Protected Attributes | |
TCollection_AsciiString | myName |
user-provided name | |
Handle< Graphic3d_LightSet > | myLights |
lights list | |
Handle< TopLoc_Datum3D > | myOriginTrsf |
transformation to the origin | |
gp_XYZ | myOrigin |
the origin of all objects within the layer | |
Standard_Real | myCullingDistance |
distance to discard objects | |
Standard_Real | myCullingSize |
size to discard objects | |
Graphic3d_PolygonOffset | myPolygonOffset |
glPolygonOffset() arguments | |
Standard_Boolean | myIsImmediate |
immediate layer will be drawn after all normal layers | |
Standard_Boolean | myToRaytrace |
option to render layer within ray-tracing engine | |
Standard_Boolean | myUseEnvironmentTexture |
flag to allow/prevent environment texture mapping usage for specific layer | |
Standard_Boolean | myToEnableDepthTest |
option to enable depth test | |
Standard_Boolean | myToEnableDepthWrite |
option to enable write depth values | |
Standard_Boolean | myToClearDepth |
option to clear depth values before drawing the layer | |
Standard_Boolean | myToRenderInDepthPrepass |
option to render layer within depth pre-pass | |
Structure defines list of ZLayer properties.
|
inline |
Default settings.
|
inline |
Modify glPolygonOffset() arguments.
|
inline |
Return the distance to discard drawing of distant objects (distance from camera Eye point); by default it is Infinite (distance culling is disabled). Since camera eye definition has no strong meaning within orthographic projection, option is considered only within perspective projection. Note also that this option has effect only when frustum culling is enabled.
|
inline |
Return the size to discard drawing of small objects; by default it is Infinite (size culling is disabled). Current implementation checks the length of projected diagonal of bounding box in pixels for discarding. Note that this option has effect only when frustum culling is enabled.
|
inline |
Dumps the content of me into the stream.
|
inline |
Return TRUE, if culling of distant objects (distance culling) should be performed; FALSE by default.
|
inline |
Return TRUE, if culling of small objects (size culling) should be performed; FALSE by default.
|
inline |
Return true if this layer should be drawn after all normal (non-immediate) layers.
|
inline |
Returns TRUE if layer should be processed by ray-tracing renderer; TRUE by default. Note that this flag is IGNORED for layers with IsImmediate() flag.
|
inline |
Return lights list to be used for rendering presentations within this Z-Layer; NULL by default. NULL list (but not empty list!) means that default lights assigned to the View should be used instead of per-layer lights.
|
inline |
Return user-provided name.
Return the origin of all objects within the layer.
|
inline |
Return the transformation to the origin.
|
inline |
Return glPolygonOffset() arguments.
|
inline |
Set if depth values should be cleared before drawing the layer.
|
inline |
Set the distance to discard drawing objects.
|
inline |
Set the distance to discard drawing objects.
|
inline |
Sets minimal possible negative depth offset.
|
inline |
Sets minimal possible positive depth offset.
|
inline |
Set if depth test should be enabled.
|
inline |
Set if depth values should be written during rendering.
|
inline |
Set the flag to allow/prevent environment texture mapping usage for specific layer.
|
inline |
Set the flag indicating the immediate layer, which should be drawn after all normal (non-immediate) layers.
|
inline |
Assign lights list to be used.
|
inline |
Set custom name.
Set the origin of all objects within the layer.
|
inline |
Setup glPolygonOffset() arguments.
|
inline |
Sets if layer should be processed by ray-tracing renderer.
|
inline |
Set if layer should be rendered within depth pre-pass.
|
inline |
Return true if depth values should be cleared before drawing the layer.
|
inline |
Return true if depth test should be enabled.
|
inline |
Return true depth values should be written during rendering.
|
inline |
Return TRUE if layer should be rendered within depth pre-pass; TRUE by default.
|
inline |
Return flag to allow/prevent environment texture mapping usage for specific layer.
|
protected |
distance to discard objects
|
protected |
size to discard objects
|
protected |
immediate layer will be drawn after all normal layers
|
protected |
lights list
|
protected |
user-provided name
|
protected |
the origin of all objects within the layer
|
protected |
transformation to the origin
|
protected |
glPolygonOffset() arguments
|
protected |
option to clear depth values before drawing the layer
|
protected |
option to enable depth test
|
protected |
option to enable write depth values
|
protected |
option to render layer within ray-tracing engine
|
protected |
option to render layer within depth pre-pass
|
protected |
flag to allow/prevent environment texture mapping usage for specific layer