#include <hps.h>

Inheritance diagram for HPS::HiddenLineAttributeKit:
HPS::Kit HPS::Object

Public Member Functions

bool Empty () const
 
bool Equals (HiddenLineAttributeKit const &in_kit) const
 
 HiddenLineAttributeKit ()
 
 HiddenLineAttributeKit (HiddenLineAttributeKit const &in_kit)
 
 HiddenLineAttributeKit (HiddenLineAttributeKit &&in_that)
 
HPS::Type ObjectType () const
 
bool operator!= (HiddenLineAttributeKit const &in_kit) const
 
HiddenLineAttributeKitoperator= (HiddenLineAttributeKit &&in_that)
 
HiddenLineAttributeKitoperator= (HiddenLineAttributeKit const &in_kit)
 
bool operator== (HiddenLineAttributeKit const &in_kit) const
 
void Set (HiddenLineAttributeKit const &in_kit)
 
HiddenLineAttributeKitSetAlgorithm (HiddenLine::Algorithm in_algorithm)
 
HiddenLineAttributeKitSetColor (RGBAColor const &in_color)
 
HiddenLineAttributeKitSetDimFactor (float in_zero_to_one)
 
HiddenLineAttributeKitSetFaceDisplacement (float in_buckets)
 
HiddenLineAttributeKitSetLinePattern (char const *in_pattern)
 
HiddenLineAttributeKitSetLineSorting (bool in_state, float in_threshold=2.0f, Line::SizeUnits in_units=HPS::Line::SizeUnits::Pixels)
 
HiddenLineAttributeKitSetRenderFaces (bool in_state)
 
HiddenLineAttributeKitSetRenderText (bool in_state)
 
HiddenLineAttributeKitSetSilhouetteCleanup (bool in_state)
 
HiddenLineAttributeKitSetTransparencyCutoff (float in_zero_to_one)
 
HiddenLineAttributeKitSetVisibility (bool in_state)
 
HiddenLineAttributeKitSetWeight (float in_weight, Line::SizeUnits in_units=Line::SizeUnits::ScaleFactor)
 
void Show (HiddenLineAttributeKit &out_kit) const
 
bool ShowAlgorithm (HiddenLine::Algorithm &out_algorithm) const
 
bool ShowColor (RGBAColor &out_color) const
 
bool ShowDimFactor (float &out_zero_to_one) const
 
bool ShowFaceDisplacement (float &out_buckets) const
 
bool ShowLinePattern (UTF8 &out_pattern) const
 
bool ShowLineSorting (bool &out_state, float &out_threshold, Line::SizeUnits &out_units) const
 
bool ShowRenderFaces (bool &out_state) const
 
bool ShowRenderText (bool &out_state) const
 
bool ShowSilhouetteCleanup (bool &out_state) const
 
bool ShowTransparencyCutoff (float &out_zero_to_one) const
 
bool ShowVisibility (bool &out_state) const
 
bool ShowWeight (float &out_weight, Line::SizeUnits &out_units) const
 
HiddenLineAttributeKitUnsetAlgorithm ()
 
HiddenLineAttributeKitUnsetColor ()
 
HiddenLineAttributeKitUnsetDimFactor ()
 
HiddenLineAttributeKitUnsetEverything ()
 
HiddenLineAttributeKitUnsetFaceDisplacement ()
 
HiddenLineAttributeKitUnsetLinePattern ()
 
HiddenLineAttributeKitUnsetLineSorting ()
 
HiddenLineAttributeKitUnsetRenderFaces ()
 
HiddenLineAttributeKitUnsetRenderText ()
 
HiddenLineAttributeKitUnsetSilhouetteCleanup ()
 
HiddenLineAttributeKitUnsetTransparencyCutoff ()
 
HiddenLineAttributeKitUnsetVisibility ()
 
HiddenLineAttributeKitUnsetWeight ()
 
virtual ~HiddenLineAttributeKit ()
 
- Public Member Functions inherited from HPS::Kit
virtual HPS::Type Type () const
 
- Public Member Functions inherited from HPS::Object
intptr_t GetClassID () const
 
intptr_t GetInstanceID () const
 
bool HasType (HPS::Type in_mask) const
 
 Object (Object const &that)
 
 Object (Object &&in_that)
 
Objectoperator= (Object const &other_object)
 
Objectoperator= (Object &&in_that)
 
virtual void Reset ()
 

Static Public Member Functions

static HiddenLineAttributeKit GetDefault ()
 
- Static Public Member Functions inherited from HPS::Object
template<typename T >
static intptr_t ClassID ()
 

Static Public Attributes

static const HPS::Type staticType = HPS::Type::HiddenLineAttributeKit
 
- Static Public Attributes inherited from HPS::Kit
static const HPS::Type staticType = HPS::Type::Kit
 
- Static Public Attributes inherited from HPS::Object
static const HPS::Type staticType = HPS::Type::None
 

Additional Inherited Members

- Protected Member Functions inherited from HPS::Kit
 Kit (Kit &&in_that)
 
Kitoperator= (Kit &&in_that)
 

Detailed Description

The HPS::HiddenLineAttributeKit class is a user space object, useful for carrying a group attribute settings. Calling HPS::HiddenLineAttributeKit::GetDefault() will return a kit with values found in this table.

Constructor & Destructor Documentation

◆ HiddenLineAttributeKit() [1/3]

HPS::HiddenLineAttributeKit::HiddenLineAttributeKit ( )

Initializes an empty kit.

◆ HiddenLineAttributeKit() [2/3]

HPS::HiddenLineAttributeKit::HiddenLineAttributeKit ( HiddenLineAttributeKit const &  in_kit)

The copy constructor creates a new HiddenLineAttributeKit object that contains the same settings as the source object.

Parameters
in_kitThe source object to copy.

◆ HiddenLineAttributeKit() [3/3]

HPS::HiddenLineAttributeKit::HiddenLineAttributeKit ( HiddenLineAttributeKit &&  in_that)

The move constructor creates a HiddenLineAttributeKit by transferring the underlying impl of the rvalue reference to this HiddenLineAttributeKit thereby avoiding a copy and allocation.

Parameters
in_thatAn rvalue reference to a HiddenLineAttributeKit to take the impl from.

◆ ~HiddenLineAttributeKit()

virtual HPS::HiddenLineAttributeKit::~HiddenLineAttributeKit ( )
virtual

Destroy this kit.

Member Function Documentation

◆ Empty()

bool HPS::HiddenLineAttributeKit::Empty ( ) const
virtual

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()

bool HPS::HiddenLineAttributeKit::Equals ( HiddenLineAttributeKit const &  in_kit) const

Check if the source HiddenLineAttributeKit is equivalent to this object.

Parameters
in_kitThe source HiddenLineAttributeKit to compare to this object.
Returns
true if the objects are equivalent, false otherwise.

◆ GetDefault()

static HiddenLineAttributeKit HPS::HiddenLineAttributeKit::GetDefault ( )
static

Creates a HiddenLineAttributeKit 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 HiddenLineAttributeKit with the default settings.

◆ ObjectType()

HPS::Type HPS::HiddenLineAttributeKit::ObjectType ( ) const
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::Kit.

◆ operator!=()

bool HPS::HiddenLineAttributeKit::operator!= ( HiddenLineAttributeKit const &  in_kit) const

Check if the source HiddenLineAttributeKit is not equivalent to this object.

Parameters
in_kitThe source HiddenLineAttributeKit to compare to this object.
Returns
true if the objects are not equivalent, false otherwise.

◆ operator=() [1/2]

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::operator= ( HiddenLineAttributeKit &&  in_that)

The move assignment operator transfers the underlying impl of the rvalue reference to this HiddenLineAttributeKit thereby avoiding a copy.

Parameters
in_thatAn rvalue reference to a HiddenLineAttributeKit to take the impl from.
Returns
A reference to this HiddenLineAttributeKit.

◆ operator=() [2/2]

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::operator= ( HiddenLineAttributeKit const &  in_kit)

Copies the source HiddenLineAttributeKit into this object.

Parameters
in_kitThe source HiddenLineAttributeKit to copy.
Returns
A reference to this object.

◆ operator==()

bool HPS::HiddenLineAttributeKit::operator== ( HiddenLineAttributeKit const &  in_kit) const

Check if the source HiddenLineAttributeKit is equivalent to this object.

Parameters
in_kitThe source HiddenLineAttributeKit to compare to this object.
Returns
true if the objects are equivalent, false otherwise.

◆ Set()

void HPS::HiddenLineAttributeKit::Set ( HiddenLineAttributeKit const &  in_kit)

Copies the source HiddenLineAttributeKit into this object.

Parameters
in_kitThe source object to copy.

◆ SetAlgorithm()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::SetAlgorithm ( HiddenLine::Algorithm  in_algorithm)

Specifies the sorting algorithm that should be used to sort faces that have been made visible by the SetRenderFaces method. Default is ZBuffer.

Parameters
in_algorithmThe algorithm used to sort visible faces.
Returns
A reference to this object.

◆ SetColor()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::SetColor ( RGBAColor const &  in_color)

Sets the color to be applied to the hidden lines and markers.

Parameters
in_colorThe color hidden line geometry should be drawn in.
Returns
A reference to this object.

◆ SetDimFactor()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::SetDimFactor ( float  in_zero_to_one)

Specifies the fraction of the current line color's R, G, and B channels to use for the color of hidden lines and markers. By default, Visualize will automatically take a fraction of the RGB values to darken the hidden lines and markers.

Parameters
in_zero_to_oneA multiplier, between [0,1], applied to each channel of the hidden line color.
Returns
A reference to this object.

◆ SetFaceDisplacement()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::SetFaceDisplacement ( float  in_buckets)

Specifies how many units to push faces away from the camera. This can help improve hidden line scene quality if distinct polylines/lines are being used to denote user-defined edges on shell/mesh regions, but are not exactly coincident with the actual shell/mesh edges. Note: hidden line face displacement is separate from the general face displacement value set with the DrawingAttributeKit::SetFaceDisplacement.

Parameters
in_bucketsThe 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
DrawingAttributeKit::SetFaceDisplacement()

◆ SetLinePattern()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::SetLinePattern ( char const *  in_pattern)

Specifies the pattern of the hidden lines.

Parameters
in_patternThe name of a line pattern, defined in a portfolio that is accessible.
Returns
A reference to this object.

◆ SetLineSorting()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::SetLineSorting ( bool  in_state,
float  in_threshold = 2.0f,
Line::SizeUnits  in_units = HPS::Line::SizeUnits::Pixels 
)

Species whether hidden lines are sorted, and if so, what the threshold for sorting is. If Hidden Line Sorting is activated, lines will be drawn in proper z-order. If this option is not activated, the order in which lines are drawn is non-deterministic. Enabling this option will result in slower performance. Due to the poor performance, this option is not recommended for screen drawing. However, it may be useful for hardcopy export. Use the functions HPS::Hardcopy::GDI::ExportOptionsKit::SetHiddenLineSorting() or HPS::Hardcopy::File::ExportOptionsKit::SetHiddenLineSorting() to enable this option for hardcopy export.

Parameters
in_stateShould hidden lines be sorted.
in_thresholdWhat is the minimum size of hidden lines that are sorted. Lines thinner than this will not be sorted.
in_unitsWhat units in_threshold is specified in.
Returns
A reference to this object.

◆ SetRenderFaces()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::SetRenderFaces ( bool  in_state)

Specifies whether triangles will be displayed during a hidden-line rendering.

Parameters
in_stateWhether triangles will displayed during a hidden-line rendering.
Returns
A reference to this object.

◆ SetRenderText()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::SetRenderText ( bool  in_state)

Specifies whether text will be displayed during a hidden-line rendering.

Parameters
in_stateWhether text will displayed during a hidden-line rendering.
Returns
A reference to this object.

◆ SetSilhouetteCleanup()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::SetSilhouetteCleanup ( bool  in_state)

Silhouette edges can show unpleasant "fishtail" patterns at points on smooth surfaces where curvature in one orientation is very different from the curvature in another (e.g. the inside of a torus). Silhouette cleanup causes a post-process to remove most of these patterns.

Parameters
in_stateWhether hidden line rendering should be post-processed to remove visual artifacts.
Returns
A reference to this object.

◆ SetTransparencyCutoff()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::SetTransparencyCutoff ( float  in_zero_to_one)

Specifies the threshold for when transparent objects are considered opaque. Objects with transparency greater than the cutoff will be considered opaque while objects with transparency less than the cutoff will treated as transparent.

Parameters
in_zero_to_oneThe cutoff value, between [0,1].
Returns
A reference to this object.

◆ SetVisibility()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::SetVisibility ( bool  in_state)

Specifies whether hidden lines and markers should be displayed.

Parameters
in_stateThe algorithm to be used during hidden line rendering.
Returns
A reference to this object.

◆ SetWeight()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::SetWeight ( float  in_weight,
Line::SizeUnits  in_units = Line::SizeUnits::ScaleFactor 
)

Sets the weight of lines drawn in hidden line rendering.

Parameters
in_weightThe weight value for hidden lines.
in_unitsThe units applied to in_weight.
Returns
A reference to this object.

◆ Show()

void HPS::HiddenLineAttributeKit::Show ( HiddenLineAttributeKit out_kit) const

Copies this object into the given HiddenLineAttributeKit.

Parameters
out_kitThe HiddenLineAttributeKit to populate with the contents of this object.

◆ ShowAlgorithm()

bool HPS::HiddenLineAttributeKit::ShowAlgorithm ( HiddenLine::Algorithm out_algorithm) const

Shows the sorting algorithm that will be used to sort faces that have been made visible by the SetRenderFaces method.

Parameters
out_algorithmThe algorithm used to sort visible faces.
Returns
true if the setting is valid, false otherwise.

◆ ShowColor()

bool HPS::HiddenLineAttributeKit::ShowColor ( RGBAColor out_color) const

Shows the color applied to hidden lines and markers.

Parameters
out_colorThe color of hidden line geometry.
Returns
true if the setting is valid, false otherwise.

◆ ShowDimFactor()

bool HPS::HiddenLineAttributeKit::ShowDimFactor ( float &  out_zero_to_one) const

Shows the dim factor multiplier applied to each channel of the hidden line color.

Parameters
out_zero_to_oneA multiplier, between [0,1], applied to each channel of the hidden line color.
Returns
true if the setting is valid, false otherwise.

◆ ShowFaceDisplacement()

bool HPS::HiddenLineAttributeKit::ShowFaceDisplacement ( float &  out_buckets) const

Shows the number of units to push faces away from the camera.

Parameters
out_bucketsThe number of "z buckets" to push faces away from the camera.
Returns
true if the setting is valid, false otherwise.

◆ ShowLinePattern()

bool HPS::HiddenLineAttributeKit::ShowLinePattern ( UTF8 out_pattern) const

Shows the pattern of the hidden lines.

Parameters
out_patternThe name of a line pattern, defined in a portfolio that is accessible.
Returns
true if the setting is valid, false otherwise.

◆ ShowLineSorting()

bool HPS::HiddenLineAttributeKit::ShowLineSorting ( bool &  out_state,
float &  out_threshold,
Line::SizeUnits out_units 
) const

Shows the hidden line sorting options.

Parameters
out_stateWhether hidden line sorting is on or off.
out_thresholdThe minimum width at which hidden lines are sorted.
out_unitsThe units that out_threshold is measured in.
Returns
true if the setting is valid, false otherwise.

◆ ShowRenderFaces()

bool HPS::HiddenLineAttributeKit::ShowRenderFaces ( bool &  out_state) const

Shows whether triangles will be displayed during a hidden-line rendering.

Parameters
out_stateWhether triangles will displayed during a hidden-line rendering.
Returns
true if the setting is valid, false otherwise.

◆ ShowRenderText()

bool HPS::HiddenLineAttributeKit::ShowRenderText ( bool &  out_state) const

Shows whether text will be displayed during a hidden-line rendering.

Parameters
out_stateWhether text will displayed during a hidden-line rendering.
Returns
true if the setting is valid, false otherwise.

◆ ShowSilhouetteCleanup()

bool HPS::HiddenLineAttributeKit::ShowSilhouetteCleanup ( bool &  out_state) const

Shows whether hidden line rendering should be post-processed to remove visual artifacts of silhouette edges.

Parameters
out_stateWhether hidden line rendering should be post-processed to remove visual artifacts.
Returns
true if the setting is valid, false otherwise.

◆ ShowTransparencyCutoff()

bool HPS::HiddenLineAttributeKit::ShowTransparencyCutoff ( float &  out_zero_to_one) const

Shows the threshold for when transparent objects are considered opaque.

Parameters
out_zero_to_oneThe cutoff value, between [0,1].
Returns
true if the setting is valid, false otherwise.

◆ ShowVisibility()

bool HPS::HiddenLineAttributeKit::ShowVisibility ( bool &  out_state) const

Shows whether hidden lines and markers should be displayed.

Parameters
out_stateWhether hidden lines and markers should be displayed.
Returns
true if the setting is valid, false otherwise.

◆ ShowWeight()

bool HPS::HiddenLineAttributeKit::ShowWeight ( float &  out_weight,
Line::SizeUnits out_units 
) const

Shows the weight of lines drawn in hidden line rendering.

Parameters
out_weightThe weight value for hidden lines.
out_unitsThe units applied to in_weight.
Returns
true if the setting is valid, false otherwise.

◆ UnsetAlgorithm()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::UnsetAlgorithm ( )

Removes the hidden line algorithm setting.

Returns
A reference to this object.

◆ UnsetColor()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::UnsetColor ( )

Removes the hidden line color setting.

Returns
A reference to this object.

◆ UnsetDimFactor()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::UnsetDimFactor ( )

Removes the dim factor setting.

Returns
A reference to this object.

◆ UnsetEverything()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::UnsetEverything ( )

Removes all settings from this object.

Returns
A reference to this object.

◆ UnsetFaceDisplacement()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::UnsetFaceDisplacement ( )

Removes the face displacement setting.

Returns
A reference to this object.

◆ UnsetLinePattern()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::UnsetLinePattern ( )

Removes the line pattern setting for hidden lines.

Returns
A reference to this object.

◆ UnsetLineSorting()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::UnsetLineSorting ( )

Removes the line sorting setting.

Returns
A reference to this object.

◆ UnsetRenderFaces()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::UnsetRenderFaces ( )

Removes the face rendering setting.

Returns
A reference to this object.

◆ UnsetRenderText()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::UnsetRenderText ( )

Removes the text rendering setting.

Returns
A reference to this object.

◆ UnsetSilhouetteCleanup()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::UnsetSilhouetteCleanup ( )

Removes the silhouette cleanup setting.

Returns
A reference to this object.

◆ UnsetTransparencyCutoff()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::UnsetTransparencyCutoff ( )

Removes the transparency cutoff setting.

Returns
A reference to this object.

◆ UnsetVisibility()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::UnsetVisibility ( )

Removes the hidden line visibility setting.

Returns
A reference to this object.

◆ UnsetWeight()

HiddenLineAttributeKit& HPS::HiddenLineAttributeKit::UnsetWeight ( )

Removes the weight setting for hidden line.

Returns
A reference to this object.

The documentation for this class was generated from the following file: