HPS.EdgeAttributeControl
- class HPS.EdgeAttributeControl : public HPS.Control
The HPS.EdgeAttributeControl class is a smart pointer that is tied to a database object. Using this control, you can manipulate the various attributes associated with geometry edges. Edges are present on any piece of facetted geometry.
This table lists default values for the various segment attributes accessible from HPS.EdgeAttributeControl.
Public Functions
- EdgeAttributeControl (HPS.EdgeAttributeControl in_that)
Initializes a control tied to the same object as in_that.
- EdgeAttributeControl (HPS.SegmentKey in_seg)
Initializes a control tied to the segment in_seg.
- override HPS.Type ObjectType ()
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).
- Return
The declared type of the object in question, which may differ from the true, underlying type.
- HPS.EdgeAttributeControl SetHardAngle (float in_angle)
Sets the angle between adjacent faces necessary for the edge between them to be considered a hard edge.
- Param in_angle
The angle, in degrees, between the adjacent faces necessary for a hard edge.
- Return
A reference to this object.
- HPS.EdgeAttributeControl SetPattern (string in_pattern_name)
Specifies the pattern of edges.
- See
Programming Guide: Line Patterns
- Return
A reference to this object.
- HPS.EdgeAttributeControl SetWeight (float in_weight)
Sets the weight of lines drawn in edge rendering.
- Param in_weight
The weight value for edges.
- Return
A reference to this object.
- HPS.EdgeAttributeControl SetWeight (float in_weight, HPS.Edge.SizeUnits in_units)
Sets the weight of lines drawn in edge rendering.
- Param in_weight
The weight value for edges.
- Param in_units
The units applied to in_weight.
- Return
A reference to this object.
- bool ShowHardAngle (out float out_angle)
Shows the weight of lines drawn in edge rendering.
- Param out_angle
The angle, in degrees, between the adjacent faces necessary for a hard edge.
- Return
true if the setting is valid, false otherwise.
- bool ShowPattern (out string out_pattern_name)
Shows the line pattern of the edges.
- Return
true if the setting is valid, false otherwise.
- bool ShowWeight (out float out_weight, out HPS.Edge.SizeUnits out_units)
Shows the weight of lines drawn in edge rendering.
- Param out_weight
The weight value for edges.
- Param out_units
The units applied to in_weight.
- Return
true if the setting is valid, false otherwise.
- HPS.EdgeAttributeControl 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 EdgeAttributeKit.GetDefault().
- Return
A reference to this object.
- HPS.EdgeAttributeControl UnsetHardAngle ()
Removes the hard edge angle setting. If the control is attached to a WindowKey this function restores the default value of this setting as specified by EdgeAttributeKit.GetDefault().
- Return
A reference to this object.
- HPS.EdgeAttributeControl UnsetPattern ()
Removes the line pattern setting for edges. If the control is attached to a WindowKey this function restores the default value of this setting as specified by EdgeAttributeKit.GetDefault().
- Return
A reference to this object.
- HPS.EdgeAttributeControl UnsetWeight ()
Removes the weight setting for edges. If the control is attached to a WindowKey this function restores the default value of this setting as specified by EdgeAttributeKit.GetDefault().
- Return
A reference to this object.