|
| CullingControl (HPS.SegmentKey in_seg) |
|
| CullingControl (HPS.CullingControl in_that) |
|
override void | Dispose () |
|
override HPS.Type | ObjectType () |
|
HPS.CullingControl | SetBackFace (bool in_state) |
|
HPS.CullingControl | SetDeferralExtent (bool in_state, uint in_pixels) |
|
HPS.CullingControl | SetDeferralExtent (uint in_pixels) |
|
HPS.CullingControl | SetDistance (bool in_state, float in_max_distance) |
|
HPS.CullingControl | SetDistance (float in_max_distance) |
|
HPS.CullingControl | SetExtent (bool in_state, uint in_pixels) |
|
HPS.CullingControl | SetExtent (uint in_pixels) |
|
HPS.CullingControl | SetFrustum (bool in_state) |
|
HPS.CullingControl | SetVector (bool in_state, HPS.Vector in_vector, float in_tolerance_degrees) |
|
HPS.CullingControl | SetVector (HPS.Vector in_vector, float in_tolerance_degrees) |
|
HPS.CullingControl | SetVector (bool in_state, HPS.Vector in_vector) |
|
HPS.CullingControl | SetVector (bool in_state) |
|
HPS.CullingControl | SetVector (HPS.Vector in_vector) |
|
HPS.CullingControl | SetVectorTolerance (float in_tolerance_degrees) |
|
HPS.CullingControl | SetVolume (bool in_state, HPS.SimpleCuboid in_volume) |
|
HPS.CullingControl | SetVolume (bool in_state) |
|
HPS.CullingControl | SetVolume (HPS.SimpleCuboid in_volume) |
|
bool | ShowBackFace (out bool out_state) |
|
bool | ShowDeferralExtent (out bool out_state, out uint out_pixels) |
|
bool | ShowDistance (out bool out_state, out float out_max_distance) |
|
bool | ShowExtent (out bool out_state, out uint out_pixels) |
|
bool | ShowFrustum (out bool out_state) |
|
bool | ShowVector (out bool out_state, out HPS.Vector out_vector) |
|
bool | ShowVectorTolerance (out float out_tolerance_degrees) |
|
bool | ShowVolume (out bool out_state, out HPS.SimpleCuboid out_volume) |
|
override HPS.Type | Type () |
|
HPS.CullingControl | UnsetBackFace () |
|
HPS.CullingControl | UnsetDeferralExtent () |
|
HPS.CullingControl | UnsetDistance () |
|
HPS.CullingControl | UnsetEverything () |
|
HPS.CullingControl | UnsetExtent () |
|
HPS.CullingControl | UnsetFrustum () |
|
HPS.CullingControl | UnsetVector () |
|
HPS.CullingControl | UnsetVectorTolerance () |
|
HPS.CullingControl | UnsetVolume () |
|
| Control (HPS.Control in_that) |
|
virtual bool | Empty () |
|
IntPtr | GetClassID () |
|
IntPtr | GetInstanceID () |
|
bool | HasType (HPS.Type in_mask) |
|
| Object (HPS.Object that) |
|
virtual void | Reset () |
|
|
override void | deleteCptr () |
|
virtual IntPtr | GetNonDirectorClassID () |
|
|
static IntPtr | ClassID< T > () |
|
bool | cMemOwn |
|
HandleRef | cptr |
|
The HPS.CullingControl class is a smart pointer that is tied to a database object. Using this object, you are able to control the various options related to culling, such as enabling or disabling back face culling, vector culling, and frustum culling. This table lists default values for the various segment attributes accessible from HPS.CullingControl.
◆ CullingControl() [1/2]
Initializes a control tied to the segment in_seg.
◆ CullingControl() [2/2]
Initializes a control tied to the same object as in_that.
◆ ObjectType()
override HPS.Type HPS.CullingControl.ObjectType |
( |
| ) |
|
|
inlinevirtual |
This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).
- Returns
- The declared type of the object in question, which may differ from the true, underlying type.
Reimplemented from HPS.Control.
◆ SetBackFace()
Controls whether faces with normals that point away from the camera should be culled. This option can only be effective if a polygon handedness is defined.
- Parameters
-
in_state | Whether faces with normals that point away from the camera should be culled. |
- Returns
- A reference to this object.
◆ SetDeferralExtent() [1/2]
Controls whether geometry that falls below a certain size should be deferred. This setting only becomes relevant in timed updates (or fixed-framerate) when deferred geometry is given a lower priority. During non-timed updates no geometry is deferred, regardless of this setting.
- Parameters
-
in_state | Whether deferral culling should be enabled. |
in_pixels | The number of pixels below which geometry should be deferred. |
- Returns
- A reference to this object.
◆ SetDeferralExtent() [2/2]
Controls whether geometry that falls below a certain size should be deferred. This setting only becomes relevant in timed updates (or fixed-framerate) when deferred geometry is given a lower priority. During non-timed updates no geometry is deferred, regardless of this setting.
- Parameters
-
in_pixels | The number of pixels below which geometry should be deferred. |
- Returns
- A reference to this object.
◆ SetDistance() [1/2]
HPS.CullingControl HPS.CullingControl.SetDistance |
( |
bool |
in_state, |
|
|
float |
in_max_distance |
|
) |
| |
|
inline |
Controls state of distance culling. When using distance culling geometries that lie farther away from the camera than specified in in_max_distance will be culled. in_max_distance is specified in world units.
- Parameters
-
in_state | Whether to use distance culling. |
in_max_distance | The maximum distance from the camera after which geometries will be culled. |
- Returns
- A reference to this object.
◆ SetDistance() [2/2]
Controls state of distance culling. This function implicitly enables distance culling. When using distance culling geometries that lie farther away from the camera than specified in in_max_distance will be culled. in_max_distance is specified in world units.
- Parameters
-
in_max_distance | The maximum distance from the camera after which geometries will be culled. |
- Returns
- A reference to this object.
◆ SetExtent() [1/2]
Controls whether geometry that falls below a certain size should be culled.
- Parameters
-
in_state | Whether extent culling should be enabled. |
in_pixels | The longest dimension of the screen-space projection of the bounding-volume, in pixels. |
- Returns
- A reference to this object.
◆ SetExtent() [2/2]
Controls whether geometry that falls below a certain size should be culled. This function implicitly enables extent culling.
- Parameters
-
in_pixels | The longest dimension of the screen-space projection of the bounding-volume, in pixels. |
- Returns
- A reference to this object.
◆ SetFrustum()
Controls whether geometry outside the current view frustum should be culled.
- Parameters
-
in_state | Whether geometry outside the current view frustum should be culled. |
- Returns
- A reference to this object.
◆ SetVector() [1/5]
Controls the state of vector culling. If the angle between the specified vector and the current view vector is less than the angle defined, then a segment with vector culling enabled will not be drawn.
- Parameters
-
in_state | Whether to use vector culling. |
in_vector | The reference vector to compare the view vector to. |
in_tolerance_degrees | The upper limit, in degrees, between the reference vector and the view vector. |
- Returns
- A reference to this object.
◆ SetVector() [2/5]
Controls the state of vector culling. If the angle between the specified vector and the current view vector is less than the angle defined, then a segment with vector culling enabled will not be drawn. This function implicitly enables extent culling.
- Parameters
-
in_vector | The reference vector to compare the view vector to. |
in_tolerance_degrees | The upper limit, in degrees, between the reference vector and the view vector. |
- Returns
- A reference to this object.
◆ SetVector() [3/5]
Controls the state of vector culling. If the angle between the specified vector and the current view vector is less than the angle defined, then a segment with vector culling enabled will not be drawn. This function does not modify the vector tolerance.
- Parameters
-
in_state | Whether to use vector culling. |
in_vector | The reference vector to compare the view vector to. |
- Returns
- A reference to this object.
◆ SetVector() [4/5]
Controls the state of vector culling. If the angle between the specified vector and the current view vector is less than the angle defined, then a segment with vector culling enabled will not be drawn. This function does not modify the vector tolerance.
- Parameters
-
in_state | Whether to use vector culling. |
- Returns
- A reference to this object.
◆ SetVector() [5/5]
Controls the state of vector culling. If the angle between the specified vector and the current view vector is less than the angle defined, then a segment with vector culling enabled will not be drawn. This function implicitly enables extent culling and does not modify the vector tolerance.
- Parameters
-
in_vector | The reference vector to compare the view vector to. |
- Returns
- A reference to this object.
◆ SetVectorTolerance()
Adjusts the tolerance value used in vector culling. This setting will have no effect is vector culling is not enabled.
- Parameters
-
in_tolerance_degrees | The upper limit, in degrees, between the reference vector and the view vector. |
- Returns
- A reference to this object.
◆ SetVolume() [1/3]
Controls state of volume culling. When using volume culling segments whose bounding not inscribed and does not intersect the volume specified by in_volume will be culled. The points of the cuboid passed to this function need to be specified in world units.
- Parameters
-
in_state | Whether to use volume culling. |
in_volume | A cuboid used to describe a world-space volume. |
- Returns
- A reference to this object.
◆ SetVolume() [2/3]
Controls state of volume culling. When using volume culling segments whose bounding not inscribed and does not intersect the volume specified by in_volume will be culled. The points of the cuboid passed to this function need to be specified in world units.
- Parameters
-
in_state | Whether to use volume culling. |
- Returns
- A reference to this object.
◆ SetVolume() [3/3]
Controls state of volume culling. When using volume culling segments whose bounding not inscribed and does not intersect the volume specified by in_volume will be culled. The points of the cuboid passed to this function need to be specified in world units.
- Parameters
-
in_volume | A cuboid used to describe a world-space volume. |
- Returns
- A reference to this object.
◆ ShowBackFace()
bool HPS.CullingControl.ShowBackFace |
( |
out bool |
out_state | ) |
|
|
inline |
Shows whether faces with normals that point away from the camera should be culled.
- Parameters
-
out_state | Whether faces with normals that point away from the camera should be culled. |
- Returns
- true if the setting is valid, false otherwise.
◆ ShowDeferralExtent()
bool HPS.CullingControl.ShowDeferralExtent |
( |
out bool |
out_state, |
|
|
out uint |
out_pixels |
|
) |
| |
|
inline |
Shows whether geometry that falls below a certain size should be deferred.
- Parameters
-
out_state | Whether deferral culling should be enabled. |
out_pixels | The number of pixels below which geometry should be deferred. |
- Returns
- true if the setting is valid, false otherwise.
◆ ShowDistance()
bool HPS.CullingControl.ShowDistance |
( |
out bool |
out_state, |
|
|
out float |
out_max_distance |
|
) |
| |
|
inline |
Shows the state of distance culling. When distance culling is active, geometries that lie farther away from the camera than out_max_distance will be culled.
- Parameters
-
out_state | Whether distance culling is being used. |
out_max_distance | The maximum distance away from the camera before geometries are culled. |
- Returns
- true if the setting is valid, false otherwise.
◆ ShowExtent()
bool HPS.CullingControl.ShowExtent |
( |
out bool |
out_state, |
|
|
out uint |
out_pixels |
|
) |
| |
|
inline |
Shows whether geometry that falls below a certain size should be culled.
- Parameters
-
out_state | Whether extent culling should be enabled. |
out_pixels | The longest dimension of the screen-space projection of the bounding-volume, in pixels. |
- Returns
- true if the setting is valid, false otherwise.
◆ ShowFrustum()
bool HPS.CullingControl.ShowFrustum |
( |
out bool |
out_state | ) |
|
|
inline |
Shows whether geometry outside the current view frustum should be culled.
- Parameters
-
out_state | Whether geometry outside the current view frustum should be culled. |
- Returns
- true if the setting is valid, false otherwise.
◆ ShowVector()
bool HPS.CullingControl.ShowVector |
( |
out bool |
out_state, |
|
|
out HPS.Vector |
out_vector |
|
) |
| |
|
inline |
Shows the state of vector culling. If the angle between the specified vector and the current view vector is less than the angle defined, then a segment with vector culling enabled will not be drawn.
- Parameters
-
out_state | Whether to use vector culling. |
out_vector | The reference vector to compare the view vector to. |
- Returns
- true if the setting is valid, false otherwise.
◆ ShowVectorTolerance()
bool HPS.CullingControl.ShowVectorTolerance |
( |
out float |
out_tolerance_degrees | ) |
|
|
inline |
Shows the tolerance value used in vector culling. This setting will have no effect is vector culling is not enabled.
- Parameters
-
out_tolerance_degrees | The upper limit, in degrees, between the reference vector and the view vector. |
- Returns
- true if the setting is valid, false otherwise.
◆ ShowVolume()
bool HPS.CullingControl.ShowVolume |
( |
out bool |
out_state, |
|
|
out HPS.SimpleCuboid |
out_volume |
|
) |
| |
|
inline |
Shows the state of volume culling. When volume culling is active, segments whose bounding is not inscribed or intersecting out_volume will be culled.
- Parameters
-
out_state | Whether volume culling is being used. |
out_volume | A cuboid defining a world-space volume. |
- Returns
- true if the setting is valid, false otherwise.
◆ Type()
override HPS.Type HPS.CullingControl.Type |
( |
| ) |
|
|
inlinevirtual |
This function returns the true type of the underlying object. This function is useful for finding the type of smart pointer objects that have been cast to more generic types.
- Returns
- The true type of the object in question.
Reimplemented from HPS.Control.
◆ UnsetBackFace()
Removes the back face culling setting. If the control is attached to a WindowKey this function restores the default value of this setting as specified by CullingKit.GetDefault().
- Returns
- A reference to this object.
◆ UnsetDeferralExtent()
Removes the extent culling setting. If the control is attached to a WindowKey this function restores the default value of this setting as specified by CullingKit.GetDefault().
- Returns
- A reference to this object.
◆ UnsetDistance()
Removes the distance culling setting. If the control is attached to a WindowKey this function restores the default value of this setting as specified by CullingKit.GetDefault().
- Returns
- A reference to this object.
◆ UnsetEverything()
Removes all settings from this object. If the control is attached to a WindowKey this function restores the default settings of this control as specified by CullingKit.GetDefault().
- Returns
- A reference to this object.
◆ UnsetExtent()
Removes the extent culling setting. If the control is attached to a WindowKey this function restores the default value of this setting as specified by CullingKit.GetDefault().
- Returns
- A reference to this object.
◆ UnsetFrustum()
Removes the frustum culling setting. If the control is attached to a WindowKey this function restores the default value of this setting as specified by CullingKit.GetDefault().
- Returns
- A reference to this object.
◆ UnsetVector()
Removes the vector culling setting while leaving the vector tolerance unmodified. If the control is attached to a WindowKey this function restores the default value of this setting as specified by CullingKit.GetDefault().
- Returns
- A reference to this object.
◆ UnsetVectorTolerance()
Removes the vector culling tolerance setting only. If the control is attached to a WindowKey this function restores the default value of this setting as specified by CullingKit.GetDefault().
- Returns
- A reference to this object.
◆ UnsetVolume()
Removes the volume culling setting. If the control is attached to a WindowKey this function restores the default value of this setting as specified by CullingKit.GetDefault().
- Returns
- A reference to this object.
The documentation for this class was generated from the following file:
- internals/hps_core/source/cs/HPS.CullingControl.cs