HPS::Hardcopy::GDI::ExportOptionsKit Class Reference

#include <hps.h>

Inheritance diagram for HPS::Hardcopy::GDI::ExportOptionsKit:
HPS::Kit HPS::Object

Public Member Functions

bool Empty () const
 
bool Equals (ExportOptionsKit const &in_kit) const
 
 ExportOptionsKit ()
 
 ExportOptionsKit (ExportOptionsKit const &in_kit)
 
 ExportOptionsKit (ExportOptionsKit &&in_that)
 
HPS::Type ObjectType () const
 
bool operator!= (ExportOptionsKit const &in_kit) const
 
ExportOptionsKitoperator= (ExportOptionsKit &&in_that)
 
ExportOptionsKitoperator= (ExportOptionsKit const &in_kit)
 
bool operator== (ExportOptionsKit const &in_kit) const
 
void Set (ExportOptionsKit const &in_kit)
 
ExportOptionsKitSetBackgroundPreference (Hardcopy::BackgroundPreference in_background_preference)
 
ExportOptionsKitSetHiddenLineSorting (bool in_on, float in_activation_weight=2.0f, HPS::Line::SizeUnits in_units=HPS::Line::SizeUnits::Pixels)
 
ExportOptionsKitSetRenderingAlgorithm (Hardcopy::RenderingAlgorithm in_rendering_algorithm)
 
ExportOptionsKitSetResolution (float in_resolution)
 
ExportOptionsKitSetScale (float in_scale, Hardcopy::SizeUnits in_units=Hardcopy::SizeUnits::Inches)
 
ExportOptionsKitSetSize (float in_width, float in_height)
 
ExportOptionsKitSetWYSIWYG (bool in_onoff)
 
void Show (ExportOptionsKit &out_kit) const
 
bool ShowBackgroundPreference (Hardcopy::BackgroundPreference &out_background_preference) const
 
bool ShowHiddenLineSorting (bool &out_state, float &out_threshold, HPS::Line::SizeUnits &out_units) const
 
bool ShowRenderingAlgorithm (Hardcopy::RenderingAlgorithm &out_rendering_algorithm) const
 
bool ShowResolution (float &out_resolution) const
 
bool ShowScale (float &out_scale, HPS::Hardcopy::SizeUnits &out_units) const
 
bool ShowSize (float &out_width, float &out_height) const
 
bool ShowWYSIWYG (bool &out_onoff) const
 
ExportOptionsKitUnsetBackgroundPreference ()
 
ExportOptionsKitUnsetEverything ()
 
ExportOptionsKitUnsetHiddenLineSorting ()
 
ExportOptionsKitUnsetRenderingAlgorithm ()
 
ExportOptionsKitUnsetResolution ()
 
ExportOptionsKitUnsetScale ()
 
ExportOptionsKitUnsetSize ()
 
ExportOptionsKitUnsetWYSIWYG ()
 
- 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 Attributes

static const HPS::Type staticType = HPS::Type::HardcopyGDIExportOptionsKit
 
- 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

- Static Public Member Functions inherited from HPS::Object
template<typename T >
static intptr_t ClassID ()
 
- Protected Member Functions inherited from HPS::Kit
 Kit (Kit &&in_that)
 
Kitoperator= (Kit &&in_that)
 

Detailed Description

The ExportOptionsKit class contains settings controlling hardcopy export.

Constructor & Destructor Documentation

◆ ExportOptionsKit() [1/3]

HPS::Hardcopy::GDI::ExportOptionsKit::ExportOptionsKit ( )

The default constructor creates an empty ExportOptionsKit object.

◆ ExportOptionsKit() [2/3]

HPS::Hardcopy::GDI::ExportOptionsKit::ExportOptionsKit ( ExportOptionsKit const &  in_kit)

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

Parameters
in_kitThe source ExportOptionsKit to copy.

◆ ExportOptionsKit() [3/3]

HPS::Hardcopy::GDI::ExportOptionsKit::ExportOptionsKit ( ExportOptionsKit &&  in_that)

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

Parameters
in_thatAn rvalue reference to an ExportOptionsKit to take the impl from.

Member Function Documentation

◆ Empty()

bool HPS::Hardcopy::GDI::ExportOptionsKit::Empty ( ) const
virtual

Indicates whether this ExportOptionsKit has any values set on it.

Returns
true if no values are set on this ExportOptionsKit, false otherwise.

Reimplemented from HPS::Object.

◆ Equals()

bool HPS::Hardcopy::GDI::ExportOptionsKit::Equals ( ExportOptionsKit const &  in_kit) const

Check if the source ExportOptionsKit is equivalent to this ExportOptionsKit.

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

◆ ObjectType()

HPS::Type HPS::Hardcopy::GDI::ExportOptionsKit::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::Hardcopy::GDI::ExportOptionsKit::operator!= ( ExportOptionsKit const &  in_kit) const

Check if the source ExportOptionsKit is not equivalent to this ExportOptionsKit.

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

◆ operator=() [1/2]

ExportOptionsKit& HPS::Hardcopy::GDI::ExportOptionsKit::operator= ( ExportOptionsKit &&  in_that)

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

Parameters
in_thatAn rvalue reference to an ExportOptionsKit to take the impl from.
Returns
A reference to this ExportOptionsKit.

◆ operator=() [2/2]

ExportOptionsKit& HPS::Hardcopy::GDI::ExportOptionsKit::operator= ( ExportOptionsKit const &  in_kit)

Copies the source ExportOptionsKit into this ExportOptionsKit.

Parameters
in_kitThe source ExportOptionsKit to copy.
Returns
A reference to this ExportOptionsKit.

◆ operator==()

bool HPS::Hardcopy::GDI::ExportOptionsKit::operator== ( ExportOptionsKit const &  in_kit) const

Check if the source ExportOptionsKit is equivalent to this ExportOptionsKit.

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

◆ Set()

void HPS::Hardcopy::GDI::ExportOptionsKit::Set ( ExportOptionsKit const &  in_kit)

Copies the source ExportOptionsKit into this ExportOptionsKit.

Parameters
in_kitThe source ExportOptionsKit to copy.

◆ SetBackgroundPreference()

ExportOptionsKit& HPS::Hardcopy::GDI::ExportOptionsKit::SetBackgroundPreference ( Hardcopy::BackgroundPreference  in_background_preference)

The background preference setting is used to decide how the background of this Hardcopy operation will be handled. If no preference is specified, the background will be forced to be white.

Parameters
in_background_preferencehow the background for this Hardcopy export will be handled.
Returns
A reference to this ExportOptionsKit.

◆ SetHiddenLineSorting()

ExportOptionsKit& HPS::Hardcopy::GDI::ExportOptionsKit::SetHiddenLineSorting ( bool  in_on,
float  in_activation_weight = 2.0f,
HPS::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 printed in proper z-order. If this option is not activated, the order in which lines are printed is non-deterministic. Enabling this option will result in slower performance.

Parameters
in_onWhether to sort hidden lines or not.
in_activation_weightWhat is the minimum size of hidden lines that are sorted. Lines thinner than this will not be sorted.
in_unitsUnits applied to in_activation_weight.
Returns
A reference to this ExportOptionsKit.

◆ SetRenderingAlgorithm()

ExportOptionsKit& HPS::Hardcopy::GDI::ExportOptionsKit::SetRenderingAlgorithm ( Hardcopy::RenderingAlgorithm  in_rendering_algorithm)

The rendering algorithm setting is used to decide how the Hardcopy export will be performed. If no preference is specified, two passes will be used for the Hardcopy export.

Parameters
in_rendering_algorithmhow the Hardcopy export will be handled.
Returns
A reference to this ExportOptionsKit.

◆ SetResolution()

ExportOptionsKit& HPS::Hardcopy::GDI::ExportOptionsKit::SetResolution ( float  in_resolution)

Sets the resolution of the image to be inserted into the Hardcopy.

Parameters
in_resolutionResolution in DPI (dots per unit).
Returns
A reference to this ExportOptionsKit.

◆ SetScale()

ExportOptionsKit& HPS::Hardcopy::GDI::ExportOptionsKit::SetScale ( float  in_scale,
Hardcopy::SizeUnits  in_units = Hardcopy::SizeUnits::Inches 
)

Scales Visualize units to correspond to real world units. For example, SetScale(1.0f, Hardcopy::SizeUnits::Inches), will make it so that every Visualize unit corresponds to 1 inch for this export, SetScale(2.0f, Hardcopy::SizeUnits::Centimeters), will make it so that every Visualize unit corresponds to 2 centimeters for this export. SetScale(0.2, Hardcopy::SizeUnits::Centimeters), will make it so that every Visualize unit corresponds to 2 millimeters for this export. Setting a scale is not defined for perspective cameras.

Parameters
in_scalethe unit scale. in_scale is required to be a positive number.
in_unitsthe unit in_scale is expressed in.
Returns
A reference to this ExportOptionsKit.

◆ SetSize()

ExportOptionsKit& HPS::Hardcopy::GDI::ExportOptionsKit::SetSize ( float  in_width,
float  in_height 
)

Sets the size of the image to be exported to the Clipboard or EMF file. This value is ignored for printer export.

Parameters
in_widthWidth in inches.
in_heightHeight in inches.
Returns
A reference to this ExportOptionsKit.

◆ SetWYSIWYG()

ExportOptionsKit& HPS::Hardcopy::GDI::ExportOptionsKit::SetWYSIWYG ( bool  in_onoff)

Enables or disables wysiwyg hardcopy output

Parameters
onofftrue is on, false is off
Returns
A reference to this ExportOptionsKit.

◆ Show()

void HPS::Hardcopy::GDI::ExportOptionsKit::Show ( ExportOptionsKit out_kit) const

Copies this ExportOptionsKit into the given ExportOptionsKit.

Parameters
out_kitThe ExportOptionsKit to populate with the contents of this ExportOptionsKit.

◆ ShowBackgroundPreference()

bool HPS::Hardcopy::GDI::ExportOptionsKit::ShowBackgroundPreference ( Hardcopy::BackgroundPreference out_background_preference) const

Shows the background preference for this Hardcopy export.

Parameters
out_background_preferencethe preference for the background of this Hardcopy export.
Returns
true if a background preference setting was specified, false otherwise.

◆ ShowHiddenLineSorting()

bool HPS::Hardcopy::GDI::ExportOptionsKit::ShowHiddenLineSorting ( bool &  out_state,
float &  out_threshold,
HPS::Line::SizeUnits out_units 
) const

Shows the hidden line sorting options of Hardcopy.

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.

◆ ShowRenderingAlgorithm()

bool HPS::Hardcopy::GDI::ExportOptionsKit::ShowRenderingAlgorithm ( Hardcopy::RenderingAlgorithm out_rendering_algorithm) const

Shows the rendering algorithm for this Hardcopy export.

Parameters
out_rendering_algorithmthe rendering algorithm setting of this Hardcopy export.
Returns
true if a rendering algorithm setting was specified, false otherwise.

◆ ShowResolution()

bool HPS::Hardcopy::GDI::ExportOptionsKit::ShowResolution ( float &  out_resolution) const

Shows the resolution of the image to be inserted into the Hardcopy.

Parameters
out_resolutionResolution in specified units (dots per unit).
Returns
true if a size setting was specified, false otherwise.

◆ ShowScale()

bool HPS::Hardcopy::GDI::ExportOptionsKit::ShowScale ( float &  out_scale,
HPS::Hardcopy::SizeUnits out_units 
) const

Shows true if a scale has been set

Parameters
out_scalethe scale specified.
out_unitsthe units out_scale is specified in.
Returns
true if a scale setting was specified, false otherwise.

◆ ShowSize()

bool HPS::Hardcopy::GDI::ExportOptionsKit::ShowSize ( float &  out_width,
float &  out_height 
) const

Shows the size of the image to be exported to the Clipboard or EMF file. This value is ignored for printer export.

Parameters
out_widthWidth in inches.
out_heightHeight in inches.
Returns
true if a size setting was specified, false otherwise.

◆ ShowWYSIWYG()

bool HPS::Hardcopy::GDI::ExportOptionsKit::ShowWYSIWYG ( bool &  out_onoff) const

Shows true if wysiwyg has been enabled

Returns
true if a size setting was specified, false otherwise.

◆ UnsetBackgroundPreference()

ExportOptionsKit& HPS::Hardcopy::GDI::ExportOptionsKit::UnsetBackgroundPreference ( )

Removes the background preference setting from this Hardcopy export.

Returns
A reference to this ExportOptionsKit.

◆ UnsetEverything()

ExportOptionsKit& HPS::Hardcopy::GDI::ExportOptionsKit::UnsetEverything ( )

Removes all settings from this ExportOptionsKit.

Returns
A reference to this ExportOptionsKit.

◆ UnsetHiddenLineSorting()

ExportOptionsKit& HPS::Hardcopy::GDI::ExportOptionsKit::UnsetHiddenLineSorting ( )

Removes the line sorting settings for hidden lines from Hardcopy

Returns
A reference to this object.

◆ UnsetRenderingAlgorithm()

ExportOptionsKit& HPS::Hardcopy::GDI::ExportOptionsKit::UnsetRenderingAlgorithm ( )

Removes the rendering algorithm setting from this Hardcopy export.

Returns
A reference to this ExportOptionsKit.

◆ UnsetResolution()

ExportOptionsKit& HPS::Hardcopy::GDI::ExportOptionsKit::UnsetResolution ( )

Removes the resolution of the image to be inserted into the Hardcopy.

Returns
A reference to this ExportOptionsKit.

◆ UnsetScale()

ExportOptionsKit& HPS::Hardcopy::GDI::ExportOptionsKit::UnsetScale ( )

Removes the scale setting from Hardcopy.

Returns
A reference to this ExportOptionsKit.

◆ UnsetSize()

ExportOptionsKit& HPS::Hardcopy::GDI::ExportOptionsKit::UnsetSize ( )

Removes the size of the image to be inserted into the Hardcopy.

Returns
A reference to this ExportOptionsKit.

◆ UnsetWYSIWYG()

ExportOptionsKit& HPS::Hardcopy::GDI::ExportOptionsKit::UnsetWYSIWYG ( )

Removes the wysiwyg setting from Hardcopy.

Returns
A reference to this ExportOptionsKit.

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