#include <hps.h>
|
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 |
|
ExportOptionsKit & | operator= (ExportOptionsKit &&in_that) |
|
ExportOptionsKit & | operator= (ExportOptionsKit const &in_kit) |
|
bool | operator== (ExportOptionsKit const &in_kit) const |
|
void | Set (ExportOptionsKit const &in_kit) |
|
ExportOptionsKit & | SetHiddenLineSorting (bool in_on, float in_activation_weight=2.0f, HPS::Line::SizeUnits in_units=HPS::Line::SizeUnits::Pixels) |
|
ExportOptionsKit & | SetResolution (float in_resolution, Hardcopy::ResolutionUnits in_units=Hardcopy::ResolutionUnits::DPI) |
|
ExportOptionsKit & | SetScale (float in_scale, Hardcopy::SizeUnits in_units=Hardcopy::SizeUnits::Inches) |
|
ExportOptionsKit & | SetSize (float in_width, float in_height, Hardcopy::SizeUnits in_units=Hardcopy::SizeUnits::Inches) |
|
ExportOptionsKit & | SetWYSIWYG (bool in_onoff) |
|
void | Show (ExportOptionsKit &out_kit) const |
|
bool | ShowHiddenLineSorting (bool &out_state, float &out_threshold, HPS::Line::SizeUnits &out_units) const |
|
bool | ShowResolution (float &out_resolution, Hardcopy::ResolutionUnits &out_units) const |
|
bool | ShowScale (float &out_scale, HPS::Hardcopy::SizeUnits &out_units) const |
|
bool | ShowSize (float &out_width, float &out_height, Hardcopy::SizeUnits &out_units) const |
|
bool | ShowWYSIWYG (bool &out_onoff) const |
|
ExportOptionsKit & | UnsetEverything () |
|
ExportOptionsKit & | UnsetHiddenLineSorting () |
|
ExportOptionsKit & | UnsetResolution () |
|
ExportOptionsKit & | UnsetScale () |
|
ExportOptionsKit & | UnsetSize () |
|
ExportOptionsKit & | UnsetWYSIWYG () |
|
virtual HPS::Type | Type () const |
|
intptr_t | GetClassID () const |
|
intptr_t | GetInstanceID () const |
|
bool | HasType (HPS::Type in_mask) const |
|
| Object (Object const &that) |
|
| Object (Object &&in_that) |
|
Object & | operator= (Object const &other_object) |
|
Object & | operator= (Object &&in_that) |
|
virtual void | Reset () |
|
The HPS::Hardcopy::File::ExportOptionsKit class contains settings controlling hardcopy export. Calling HPS::Hardcopy::File::ExportOptionsKit::GetDefault() will return an options kit with values found in here.
HPS::Hardcopy::File::ExportOptionsKit::ExportOptionsKit |
( |
| ) |
|
HPS::Hardcopy::File::ExportOptionsKit::ExportOptionsKit |
( |
ExportOptionsKit const & |
in_kit | ) |
|
HPS::Hardcopy::File::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
-
bool HPS::Hardcopy::File::ExportOptionsKit::Empty |
( |
| ) |
const |
|
virtual |
bool HPS::Hardcopy::File::ExportOptionsKit::Equals |
( |
ExportOptionsKit const & |
in_kit | ) |
const |
Creates a ExportOptionsKit 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 ExportOptionsKit with the default settings.
HPS::Type HPS::Hardcopy::File::ExportOptionsKit::ObjectType |
( |
| ) |
const |
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
- Returns
- The declared type of the object in question, which may differ from the true, underlying type.
Reimplemented from HPS::Kit.
bool HPS::Hardcopy::File::ExportOptionsKit::operator!= |
( |
ExportOptionsKit const & |
in_kit | ) |
const |
The move assignment operator transfers the underlying impl of the rvalue reference to this ExportOptionsKit thereby avoiding a copy.
- Parameters
-
- Returns
- A reference to this ExportOptionsKit.
bool HPS::Hardcopy::File::ExportOptionsKit::operator== |
( |
ExportOptionsKit const & |
in_kit | ) |
const |
void HPS::Hardcopy::File::ExportOptionsKit::Set |
( |
ExportOptionsKit const & |
in_kit | ) |
|
Sets the hidden line sorting options of Hardcopy
- Parameters
-
in_on | Whether to sort or not. |
in_activation_weight | Lines thicker than this will be sorted. Thinner ones will be ignored. |
in_units | Units applied to in_activation_weight. |
Sets the resolution of the image to be inserted into the Hardcopy.
- Parameters
-
in_resolution | Resolution (dots per inch or dots per centimeter). |
in_units | Units of preceding arguments. Defaults to Inches. |
- Returns
- A reference to this ExportOptionsKit.
- See also
- Default value
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_scale | the unit scale. in_scale is required to be a positive number. |
in_units | the unit in_scale is expressed in. |
- Returns
- A reference to this ExportOptionsKit.
Sets the size of the image to be inserted into the Hardcopy.
- Parameters
-
in_width | Width in inches. |
in_height | Height in inches. |
in_units | Units of preceding arguments. Defaults to Inches |
- Returns
- A reference to this ExportOptionsKit.
- See also
- Default value
ExportOptionsKit& HPS::Hardcopy::File::ExportOptionsKit::SetWYSIWYG |
( |
bool |
in_onoff | ) |
|
Enables or disables WYSIWYG hardcopy output. The WYSIWYG setting (which stands for What You See Is What You Get) works as follows:
-
If true, what you see on the screen is what will be printed. This is the default.
-
If false, everything which will fit on the page size you have specified will be printed, even if some of that is not on screen when you issue the command.
- Parameters
-
in_onoff | true is on, false is off. |
- Returns
- A reference to this ExportOptionsKit.
- See also
- Default value
void HPS::Hardcopy::File::ExportOptionsKit::Show |
( |
ExportOptionsKit & |
out_kit | ) |
const |
bool HPS::Hardcopy::File::ExportOptionsKit::ShowHiddenLineSorting |
( |
bool & |
out_state, |
|
|
float & |
out_threshold, |
|
|
HPS::Line::SizeUnits & |
out_units |
|
) |
| const |
Shows the hidden line sorting options of Hardcopy.
- Parameters
-
out_state | Whether hidden line sorting is on or off. |
out_threshold | The minimum width at which hidden lines are sorted. |
out_units | The units that out_threshold is measured in. |
- Returns
- true if the setting is valid, false otherwise.
bool HPS::Hardcopy::File::ExportOptionsKit::ShowResolution |
( |
float & |
out_resolution, |
|
|
Hardcopy::ResolutionUnits & |
out_units |
|
) |
| const |
Shows the resolution of the image to be inserted into the Hardcopy.
- Parameters
-
out_resolution | Resolution (dots per inch or dots per centimeter). |
out_units | Units of preceding arguments. |
- Returns
- true if a size setting was specified, false otherwise.
Shows true if a scale has been set
- Parameters
-
out_scale | the scale specified. |
out_units | the units out_scale is specified in. |
- Returns
- true if a scale setting was specified, false otherwise.
bool HPS::Hardcopy::File::ExportOptionsKit::ShowSize |
( |
float & |
out_width, |
|
|
float & |
out_height, |
|
|
Hardcopy::SizeUnits & |
out_units |
|
) |
| const |
Shows the size of the image to be inserted into the Hardcopy.
- Parameters
-
out_width | Width. |
out_height | Height. |
out_units | Units of preceding arguments. |
- Returns
- true if a size setting was specified, false otherwise.
bool HPS::Hardcopy::File::ExportOptionsKit::ShowWYSIWYG |
( |
bool & |
out_onoff | ) |
const |
Shows true if wysiwyg has been enabled
- Parameters
-
out_onoff | whether 'what you see is what you get' is turned on or off |
- Returns
- true if a wysiwyg setting was specified, false otherwise.
ExportOptionsKit& HPS::Hardcopy::File::ExportOptionsKit::UnsetHiddenLineSorting |
( |
| ) |
|
Removes the line sorting settings for hidden lines from Hardcopy
- Returns
- A reference to this object.
The documentation for this class was generated from the following file: