|
override void | Dispose () |
|
| DrawingAttributeKit () |
|
| DrawingAttributeKit (HPS.DrawingAttributeKit in_kit) |
|
override bool | Empty () |
|
override bool | Equals (System.Object obj) |
|
bool | Equals (HPS.DrawingAttributeKit in_kit) |
|
override int | GetHashCode () |
|
override HPS.Type | ObjectType () |
|
void | Set (HPS.DrawingAttributeKit in_kit) |
|
HPS.DrawingAttributeKit | SetClipRegion (HPS.Point[] in_points, HPS.Drawing.ClipSpace in_space, HPS.Drawing.ClipOperation in_operation) |
|
HPS.DrawingAttributeKit | SetClipRegion (HPS.Point[] in_points, HPS.Drawing.ClipSpace in_space) |
|
HPS.DrawingAttributeKit | SetClipRegion (HPS.Point[] in_points) |
|
HPS.DrawingAttributeKit | SetClipRegion (HPS.Point[][] in_loops, HPS.Drawing.ClipSpace in_space, HPS.Drawing.ClipOperation in_operation) |
|
HPS.DrawingAttributeKit | SetClipRegion (HPS.Point[][] in_loops, HPS.Drawing.ClipSpace in_space) |
|
HPS.DrawingAttributeKit | SetClipRegion (HPS.Point[][] in_loops) |
|
HPS.DrawingAttributeKit | SetDeferral (int in_deferral) |
|
HPS.DrawingAttributeKit | SetDepthRange (float in_near, float in_far) |
|
HPS.DrawingAttributeKit | SetFaceDisplacement (bool in_state, int in_buckets) |
|
HPS.DrawingAttributeKit | SetFaceDisplacement (bool in_state) |
|
HPS.DrawingAttributeKit | SetFaceDisplacement (int in_buckets) |
|
HPS.DrawingAttributeKit | SetGeneralDisplacement (bool in_state, int in_buckets) |
|
HPS.DrawingAttributeKit | SetGeneralDisplacement (bool in_state) |
|
HPS.DrawingAttributeKit | SetGeneralDisplacement (int in_buckets) |
|
HPS.DrawingAttributeKit | SetOverlay (HPS.Drawing.Overlay in_overlay) |
|
HPS.DrawingAttributeKit | SetOverrideInternalColor (HPS.VisibilityKit in_kit) |
|
HPS.DrawingAttributeKit | SetPolygonHandedness (HPS.Drawing.Handedness in_handedness) |
|
HPS.DrawingAttributeKit | SetVertexDecimation (float in_zero_to_one) |
|
HPS.DrawingAttributeKit | SetVertexDisplacement (bool in_state, int in_buckets) |
|
HPS.DrawingAttributeKit | SetVertexDisplacement (bool in_state) |
|
HPS.DrawingAttributeKit | SetVertexDisplacement (int in_buckets) |
|
HPS.DrawingAttributeKit | SetVertexRandomization (bool in_state) |
|
HPS.DrawingAttributeKit | SetWorldHandedness (HPS.Drawing.Handedness in_handedness) |
|
void | Show (out HPS.DrawingAttributeKit out_kit) |
|
bool | ShowClipRegion (out HPS.Point[][] out_loops, out HPS.Drawing.ClipSpace out_space, out HPS.Drawing.ClipOperation out_operation) |
|
bool | ShowDeferral (out int out_defer_batch) |
|
bool | ShowDepthRange (out float out_near, out float out_far) |
|
bool | ShowFaceDisplacement (out bool out_state, out int out_buckets) |
|
bool | ShowGeneralDisplacement (out bool out_state, out int out_buckets) |
|
bool | ShowOverlay (out HPS.Drawing.Overlay out_overlay) |
|
bool | ShowOverrideInternalColor (out HPS.VisibilityKit out_kit) |
|
bool | ShowPolygonHandedness (out HPS.Drawing.Handedness out_handedness) |
|
bool | ShowVertexDecimation (out float out_zero_to_one) |
|
bool | ShowVertexDisplacement (out bool out_state, out int out_buckets) |
|
bool | ShowVertexRandomization (out bool out_state) |
|
bool | ShowWorldHandedness (out HPS.Drawing.Handedness out_handedness) |
|
HPS.DrawingAttributeKit | UnsetClipRegion () |
|
HPS.DrawingAttributeKit | UnsetDeferral () |
|
HPS.DrawingAttributeKit | UnsetDepthRange () |
|
HPS.DrawingAttributeKit | UnsetEverything () |
|
HPS.DrawingAttributeKit | UnsetFaceDisplacement () |
|
HPS.DrawingAttributeKit | UnsetGeneralDisplacement () |
|
HPS.DrawingAttributeKit | UnsetOverlay () |
|
HPS.DrawingAttributeKit | UnsetOverrideInternalColor () |
|
HPS.DrawingAttributeKit | UnsetPolygonHandedness () |
|
HPS.DrawingAttributeKit | UnsetVertexDecimation () |
|
HPS.DrawingAttributeKit | UnsetVertexDisplacement () |
|
HPS.DrawingAttributeKit | UnsetVertexRandomization () |
|
HPS.DrawingAttributeKit | UnsetWorldHandedness () |
|
override void | Dispose () |
|
| Kit (HPS.Kit in_that) |
|
override HPS.Type | ObjectType () |
|
override HPS.Type | Type () |
|
IntPtr | GetClassID () |
|
IntPtr | GetInstanceID () |
|
bool | HasType (HPS.Type in_mask) |
|
| Object (HPS.Object that) |
|
virtual void | Reset () |
|
|
override void | deleteCptr () |
|
override void | deleteCptr () |
|
virtual IntPtr | GetNonDirectorClassID () |
|
|
bool | cMemOwn |
|
HandleRef | cptr |
|
The HPS.DrawingAttributeKit class is a user space object, useful for carrying a group attribute settings. Calling HPS.DrawingAttributeKit.GetDefault() will return a kit with values found in this table.
◆ DrawingAttributeKit() [1/2]
HPS.DrawingAttributeKit.DrawingAttributeKit |
( |
| ) |
|
|
inline |
Initializes an empty kit.
◆ DrawingAttributeKit() [2/2]
The copy constructor creates a new DrawingAttributeKit object that contains the same settings as the source object.
- Parameters
-
in_kit | The source object to copy. |
◆ Empty()
override bool HPS.DrawingAttributeKit.Empty |
( |
| ) |
|
|
inlinevirtual |
Indicates whether this object has any values set on it.
- Returns
- true if no values are set on this object, false otherwise.
Reimplemented from HPS.Object.
◆ Equals()
Check if the source DrawingAttributeKit is equivalent to this object.
- Parameters
-
- Returns
- true if the objects are equivalent, false otherwise.
◆ GetDefault()
Creates a DrawingAttributeKit which contains the default settings. The returned object will not necessarily have values set for every option, but it will have settings for those options where it is reasonable to have a default.
- Returns
- A DrawingAttributeKit with the default settings.
◆ ObjectType()
override HPS.Type HPS.DrawingAttributeKit.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.Object.
◆ Set()
Copies the source DrawingAttributeKit into this object.
- Parameters
-
in_kit | The source object to copy. |
◆ SetClipRegion() [1/6]
Sets a polygonal clip region.
- Parameters
-
in_points | An array of points describing the clip region. |
in_space | The coordinate space in which in_points are specified. |
in_operation | The operation performed by the clip region. |
- Returns
- A reference to this object.
◆ SetClipRegion() [2/6]
Sets a polygonal clip region.
- Parameters
-
in_points | An array of points describing the clip region. |
in_space | The coordinate space in which in_points are specified. |
- Returns
- A reference to this object.
◆ SetClipRegion() [3/6]
Sets a polygonal clip region.
- Parameters
-
in_points | An array of points describing the clip region. |
- Returns
- A reference to this object.
◆ SetClipRegion() [4/6]
Sets a complex polygonal clip region defined by the XOR of a series of loops.
- Parameters
-
in_loops | An array of loops describing clip regions. |
in_space | The coordinate space in which in_loops are specified. |
in_operation | The operation performed by the clip region. |
- Returns
- A reference to this object.
◆ SetClipRegion() [5/6]
Sets a complex polygonal clip region defined by the XOR of a series of loops.
- Parameters
-
in_loops | An array of loops describing clip regions. |
in_space | The coordinate space in which in_loops are specified. |
- Returns
- A reference to this object.
◆ SetClipRegion() [6/6]
Sets a complex polygonal clip region defined by the XOR of a series of loops.
- Parameters
-
in_loops | An array of loops describing clip regions. |
- Returns
- A reference to this object.
◆ SetDeferral()
Specifies a drawing order for a segment during timed updates. Segments with a lower deferral value will be drawn before segments with a higher value. This attribute does not inherit like most attributes and segments have a default value of 0.
- Parameters
-
in_deferral | A drawing priority, with larger values drawing later than usual. Should be non-negative. |
- Returns
- A reference to this object.
◆ SetDepthRange()
Compresses effective Z values into a subset of what they would otherwise have been. This allows certain pieces of the scene to be drawn on top at all times without additional sub-windows. Values of (0,0) will force all geometry into the frontmost bucket, but will have the drawback that it will cause z-fighting amongst the geometry that shares that setting. To get such pieces of geometry to resolve reasonably well against each other, a range of (0,0.1) should perform reasonably well. Depth range settings are not cumulative, and have no effect when the rendering algorithm is Priority, or is not set. The default is (0,1)
- Parameters
-
in_near | The portion of the depth range closest to the camera. Valid range is [0,1] with in_near <= in_far. |
in_far | The portion of the depth range furthest to the camera. Valid range is [0,1] with in_near <= in_far. |
- Returns
- A reference to this object.
◆ SetFaceDisplacement() [1/3]
Specifies a number of Z-buffer units that rendered faces should be pushed away from the camera. This can be used to reduce edge stitching by ensuring that coincident edges lay on top of the faces. Negative face displacements will push faces toward the camera.
- Parameters
-
in_state | Whether face displacement should be used. |
in_buckets | The number of units to move faces in the Z-Buffer. The units are 1/2^24 in the normalized depth range [0,1]. Negative values will move faces toward the camera, positive values away from the camera. |
- Returns
- A reference to this object.
◆ SetFaceDisplacement() [2/3]
Specifies a number of Z-buffer units that rendered faces should be pushed away from the camera. This can be used to reduce edge stitching by ensuring that coincident edges lay on top of the faces. Negative face displacements will push faces toward the camera.
- Parameters
-
in_state | Whether face displacement should be used. |
- Returns
- A reference to this object.
◆ SetFaceDisplacement() [3/3]
Specifies a number of Z-buffer units that rendered faces should be pushed away from the camera.
- Parameters
-
in_buckets | The number of units to move faces in the Z-Buffer. The units are 1/2^24 in the normalized depth range [0,1]. Negative values will move faces toward the camera, positive values away from the camera. |
- Returns
- A reference to this object.
- See also
- SetFaceDisplacement(bool in_state, int in_buckets)
◆ SetGeneralDisplacement() [1/3]
Specifies a number of Z-buffer units that all geometry should be pushed away from the camera. This can be used to ensure that certain geometry is drawn on top of or behind the rest of the scene. Negative general displacements will push geometry toward the camera.
- Parameters
-
in_state | Whether general displacement should be used. |
in_buckets | The number of units to move rendered geometry in the Z-Buffer. The units are 1/2^24 in the normalized depth range [0,1]. Negative values will move geometry toward the camera, positive values away from the camera. |
- Returns
- A reference to this object.
◆ SetGeneralDisplacement() [2/3]
Specifies a number of Z-buffer units that all geometry should be pushed away from the camera. This can be used to ensure that certain geometry is drawn on top of or behind the rest of the scene. Negative general displacements will push geometry toward the camera.
- Parameters
-
in_state | Whether general displacement should be used. |
- Returns
- A reference to this object.
◆ SetGeneralDisplacement() [3/3]
Specifies a number of Z-buffer units that all geometry should be pushed away from the camera.
- Parameters
-
in_buckets | The number of units to move rendered geometry in the Z-Buffer. The units are 1/2^24 in the normalized depth range [0,1]. Negative values will move geometry toward the camera, positive values away from the camera. |
- Returns
- A reference to this object.
- See also
- SetGeneralDisplacement(bool in_state, int in_buckets)
◆ SetOverlay()
Allows moving, editing, or deleting to take place in a segment without triggering a full-screen redraw.
- Parameters
-
in_overlay | The type of overlay, if any, to be used. |
- Returns
- A reference to this object.
◆ SetOverrideInternalColor()
Specifies internal color of line styles, glyphs and similar items should be overridden.
- Parameters
-
in_kit | Which types should internal colors should be overridden. |
- Returns
- A reference to this object.
◆ SetPolygonHandedness()
In order to perform back face culling, there must be some definition of a polygon's "front" and "back" faces. This orientation is determined by the order in which the polygon's vertices were originally defined and the polygon handedness setting (not the world handedness). If you wrap the fingers of the chosen hand along the vertices of the polygon, with your wrist at the first vertex and your fingertips at the last, then extend your thumb perpendicular to your fingers, your thumb is extending out of the front face of the polygon.
- Parameters
-
in_handedness | The handedness to be used for geometry. |
- Returns
- A reference to this object.
- See also
- SetWorldHandedness()
-
CullingKit.SetBackFace()
◆ SetVertexDecimation()
Specifies an amount of vertices to draw 1 draws them all.
- Parameters
-
in_zero_to_one | An amount, between [0,1], of vertices to draw. |
- Returns
- A reference to this object.
◆ SetVertexDisplacement() [1/3]
Specifies a number of Z-buffer units that vertices should be pushed away from the camera. This can be used to ensure that vertices are drawn on top of or behind other geometry. Negative general displacements will push vertices toward the camera.
- Parameters
-
in_state | Whether vertex displacement should be used. |
in_buckets | The number of units to move vertices in the Z-Buffer. The units are 1/2^24 in the normalized depth range [0,1]. Negative values will move vertices toward the camera, positive values away from the camera. |
- Returns
- A reference to this object.
◆ SetVertexDisplacement() [2/3]
Specifies a number of Z-buffer units that vertices should be pushed away from the camera. This can be used to ensure that vertices are drawn on top of or behind other geometry. Negative general displacements will push vertices toward the camera.
- Parameters
-
in_state | Whether vertex displacement should be used. |
- Returns
- A reference to this object.
◆ SetVertexDisplacement() [3/3]
Specifies a number of Z-buffer units that vertices should be pushed away from the camera. The state is implicitly on.
- Parameters
-
in_buckets | The number of units to move vertices in the Z-Buffer. The units are 1/2^24 in the normalized depth range [0,1]. Negative values will move vertices toward the camera, positive values away from the camera. |
- Returns
- A reference to this object.
◆ SetVertexRandomization()
Specifies vertices should be drawn in a random order.
- Parameters
-
in_state | If true the vertices for a point cloud will be randomized. |
- Returns
- A reference to this object.
◆ SetWorldHandedness()
The world handedness determines the orientation of the Z-axis in the Cartesian coordinate system. If you curl the fingers of your appropriate hand from the X-axis towards the Y-axis, your thumb will point in the direction of the Z-axis.
- Parameters
-
in_handedness | The handedness of the underlying coordinate system. |
- Returns
- A reference to this object.
- See also
- SetPolygonHandedness()
◆ Show()
◆ ShowClipRegion()
Shows the clip region settings.
- Parameters
-
out_loops | An array of loops describing the clip region. |
out_space | The coordinate space in which out_loops are described. |
out_operation | The operation performed by the clip region |
- Returns
- true if the setting is valid, false otherwise.
◆ ShowDeferral()
bool HPS.DrawingAttributeKit.ShowDeferral |
( |
out int |
out_defer_batch | ) |
|
|
inline |
Shows the deferral setting.
- Parameters
-
out_defer_batch | A drawing priority, with negative values drawing earlier than usual and positive values drawing later than usual. |
- Returns
- true if the setting is valid, false otherwise.
◆ ShowDepthRange()
bool HPS.DrawingAttributeKit.ShowDepthRange |
( |
out float |
out_near, |
|
|
out float |
out_far |
|
) |
| |
|
inline |
Shows the depth range setting.
- Parameters
-
out_near | The portion of the depth range closest to the camera. Valid range is [0,1] with out_near <= out_far. |
out_far | The portion of the depth range furthest to the camera. Valid range is [0,1] with out_near <= out_far. |
- Returns
- true if the setting is valid, false otherwise.
◆ ShowFaceDisplacement()
bool HPS.DrawingAttributeKit.ShowFaceDisplacement |
( |
out bool |
out_state, |
|
|
out int |
out_buckets |
|
) |
| |
|
inline |
Shows the face displacement setting.
- Parameters
-
out_state | Whether face displacement will be used. |
out_buckets | The distance to move rendered faces away from the camera. |
- Returns
- true if the setting is valid, false otherwise.
◆ ShowGeneralDisplacement()
bool HPS.DrawingAttributeKit.ShowGeneralDisplacement |
( |
out bool |
out_state, |
|
|
out int |
out_buckets |
|
) |
| |
|
inline |
Shows the general displacement setting.
- Parameters
-
out_state | Whether general displacement will be used. |
out_buckets | The distance to move rendered geometry away from the camera. |
- Returns
- true if the setting is valid, false otherwise.
◆ ShowOverlay()
Shows the overlay setting.
- Parameters
-
out_overlay | The type of overlay, if any, used. |
- Returns
- true if the setting is valid, false otherwise.
◆ ShowOverrideInternalColor()
bool HPS.DrawingAttributeKit.ShowOverrideInternalColor |
( |
out HPS.VisibilityKit |
out_kit | ) |
|
|
inline |
Shows the override internal color settings.
- Parameters
-
out_kit | Which override internal color types will be used. |
- Returns
- true if the setting is valid, false otherwise.
◆ ShowPolygonHandedness()
Shows the polygon handedness.
- Parameters
-
out_handedness | The handedness used for geometry. |
- Returns
- true if the setting is valid, false otherwise.
◆ ShowVertexDecimation()
bool HPS.DrawingAttributeKit.ShowVertexDecimation |
( |
out float |
out_zero_to_one | ) |
|
|
inline |
Shows the vertex decimation setting.
- Parameters
-
out_zero_to_one | The value set for vertex decimation. |
- Returns
- true if the setting is valid, false otherwise.
◆ ShowVertexDisplacement()
bool HPS.DrawingAttributeKit.ShowVertexDisplacement |
( |
out bool |
out_state, |
|
|
out int |
out_buckets |
|
) |
| |
|
inline |
Shows the vertex displacement setting.
- Parameters
-
out_state | Whether vertex displacement will be used. |
out_buckets | The distance to move vertices away from the camera. |
- Returns
- true if the setting is valid, false otherwise.
◆ ShowVertexRandomization()
bool HPS.DrawingAttributeKit.ShowVertexRandomization |
( |
out bool |
out_state | ) |
|
|
inline |
Shows the vertex randomization setting.
- Parameters
-
out_state | Whether vertex randomization will be used. |
- Returns
- true if the setting is valid, false otherwise.
◆ ShowWorldHandedness()
Shows the world handedness.
- Parameters
-
out_handedness | The handedness of the underlying coordinate system. |
- Returns
- true if the setting is valid, false otherwise.
◆ UnsetClipRegion()
Removes a clip region.
- Returns
- A reference to this object.
◆ UnsetDeferral()
Removes a deferral setting.
- Returns
- A reference to this object.
◆ UnsetDepthRange()
Removes a depth range setting.
- Returns
- A reference to this object.
◆ UnsetEverything()
Removes all settings from this object.
- Returns
- A reference to this object.
◆ UnsetFaceDisplacement()
Removes a face displacement setting.
- Returns
- A reference to this object.
◆ UnsetGeneralDisplacement()
Removes a general displacement setting.
- Returns
- A reference to this object.
◆ UnsetOverlay()
Removes an overlay setting.
- Returns
- A reference to this object.
◆ UnsetOverrideInternalColor()
Removes a override internal color setting.
- Returns
- A reference to this object.
◆ UnsetPolygonHandedness()
Removes a polygon handedness setting.
- Returns
- A reference to this object.
◆ UnsetVertexDecimation()
Removes a vertex decimation setting.
- Returns
- A reference to this object.
◆ UnsetVertexDisplacement()
Removes a vertex displacement setting.
- Returns
- A reference to this object.
◆ UnsetVertexRandomization()
Removes a vertex randomization setting.
- Returns
- A reference to this object.
◆ UnsetWorldHandedness()
Removes a world handedness setting.
- Returns
- A reference to this object.
The documentation for this class was generated from the following file:
- internals/hps_core/source/cs/HPS.DrawingAttributeKit.cs