#include <hps.h>
|
template<typename T > |
static intptr_t | ClassID () |
|
The WindowInfoKit class is a user space object, useful for carrying a group attribute settings.
HPS::WindowInfoKit::WindowInfoKit |
( |
| ) |
|
Initializes an empty kit.
HPS::WindowInfoKit::WindowInfoKit |
( |
WindowInfoKit const & |
in_kit | ) |
|
Copies the kit in_kit into this kit.
The move constructor creates a WindowInfoKit by transferring the underlying impl of the rvalue reference to this WindowInfoKit thereby avoiding a copy and allocation.
- Parameters
-
in_that | An rvalue reference to a WindowInfoKit to take the impl from. |
virtual HPS::WindowInfoKit::~WindowInfoKit |
( |
| ) |
|
|
virtual |
bool HPS::WindowInfoKit::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.
bool HPS::WindowInfoKit::Equals |
( |
WindowInfoKit const & |
in_kit | ) |
const |
Check if the source WindowInfoKit is equivalent to this object.
- Parameters
-
- Returns
- true if the objects are equivalent, false otherwise.
HPS::Type HPS::WindowInfoKit::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::Object.
bool HPS::WindowInfoKit::operator!= |
( |
WindowInfoKit const & |
in_kit | ) |
const |
Check if the source WindowInfoKit is not equivalent to this object.
- Parameters
-
- Returns
- true if the objects are not equivalent, false otherwise.
The move assignment operator transfers the underlying impl of the rvalue reference to this WindowInfoKit thereby avoiding a copy.
- Parameters
-
in_that | An rvalue reference to a WindowInfoKit to take the impl from. |
- Returns
- A reference to this WindowInfoKit.
Copies the source WindowInfoKit into this object.
- Parameters
-
- Returns
- A reference to this object.
bool HPS::WindowInfoKit::operator== |
( |
WindowInfoKit const & |
in_kit | ) |
const |
Check if the source WindowInfoKit is equivalent to this object.
- Parameters
-
- Returns
- true if the objects are equivalent, false otherwise.
Copies the source WindowInfoKit into this object.
- Parameters
-
in_kit | The source object to copy. |
WindowInfoKit& HPS::WindowInfoKit::SetPhysicalPixels |
( |
unsigned int |
in_width, |
|
|
unsigned int |
in_height |
|
) |
| |
Sets the number of pixels in the physical display (monitor, off-screen renderer, printer, etc.).
- Parameters
-
in_width | The width of the physical display in pixels. |
in_height | The height of the physical display in pixels. |
- Returns
- A reference to this object.
WindowInfoKit& HPS::WindowInfoKit::SetPhysicalSize |
( |
float |
in_width, |
|
|
float |
in_height |
|
) |
| |
Sets the size, in centimeters, of the physical display (monitor, off-screen renderer, printer, etc.).
- Parameters
-
in_width | The width of the physical display in centimeters. |
in_height | The height of the physical display in centimeters. |
- Returns
- A reference to this object.
WindowInfoKit& HPS::WindowInfoKit::SetWindowPixels |
( |
unsigned int |
in_width, |
|
|
unsigned int |
in_height |
|
) |
| |
Sets the number of pixels in the window.
- Parameters
-
in_width | The width of the window in pixels. |
in_height | The height of the window in pixels. |
- Returns
- A reference to this object.
WindowInfoKit& HPS::WindowInfoKit::SetWindowSize |
( |
float |
in_width, |
|
|
float |
in_height |
|
) |
| |
Sets the size, in centimeters, of the window.
- Parameters
-
in_width | The width of the window in centimeters. |
in_height | The height of the window in centimeters. |
- Returns
- A reference to this object.
Copies this object into the given WindowInfoKit.
- Parameters
-
out_kit | The WindowInfoKit to populate with the contents of this object. |
bool HPS::WindowInfoKit::ShowPhysicalPixels |
( |
unsigned int & |
out_width, |
|
|
unsigned int & |
out_height |
|
) |
| const |
Shows the number of pixels in the physical display (monitor, off-screen renderer, printer, etc.).
- Parameters
-
out_width | The width of the physical display in pixels. |
out_height | The height of the physical display in pixels. |
- Returns
- true if the setting is valid, false otherwise.
bool HPS::WindowInfoKit::ShowPhysicalSize |
( |
float & |
out_width, |
|
|
float & |
out_height |
|
) |
| const |
Shows the size, in centimeters, of the physical display (monitor, off-screen renderer, printer, etc.).
- Parameters
-
out_width | The width of the physical display in centimeters. |
out_height | The height of the physical display in centimeters. |
- Returns
- true if the setting is valid, false otherwise.
bool HPS::WindowInfoKit::ShowPixelAspectRatio |
( |
float & |
out_pixel_aspect | ) |
const |
Shows the aspect ratio of the window's pixels. This is computed as the horizontal resolution divided by the vertical resolution.
- Parameters
-
out_pixel_aspect | The aspect ratio of the window defined as width / height in pixels. |
- Returns
- true if the setting is valid, false otherwise.
bool HPS::WindowInfoKit::ShowResolution |
( |
float & |
out_horizontal, |
|
|
float & |
out_vertical |
|
) |
| const |
Shows both the horizontal and vertical resolution of the window. Resolution is computed as pixels per centimeter. If the size or the pixels are not set, this function will return false.
- Parameters
-
out_horizontal | The horizontal resolution of the window. |
out_vertical | The vertical resolution of the window. |
- Returns
- true if the setting is valid, false otherwise.
bool HPS::WindowInfoKit::ShowWindowAspectRatio |
( |
float & |
out_window_aspect | ) |
const |
Shows the aspect ratio of the window. Aspect ratio is computed as width / height in centimeters.
- Parameters
-
out_window_aspect | The aspect ratio of the window defined as width / height in centimeters. |
- Returns
- true if the setting is valid, false otherwise.
bool HPS::WindowInfoKit::ShowWindowPixels |
( |
unsigned int & |
out_width, |
|
|
unsigned int & |
out_height |
|
) |
| const |
Shows the number of pixels in the window.
- Parameters
-
out_width | The width of the window in pixels. |
out_height | The height of the window in pixels. |
- Returns
- true if the setting is valid, false otherwise.
bool HPS::WindowInfoKit::ShowWindowSize |
( |
float & |
out_width, |
|
|
float & |
out_height |
|
) |
| const |
Shows the size, in centimeters, of the window.
- Parameters
-
out_width | The width of the window in centimeters. |
out_height | The height of the window in centimeters. |
- Returns
- true if the setting is valid, false otherwise.
Removes all settings from this object.
- Returns
- A reference to this object.
Unsets the number of pixels in the physical display (monitor, off-screen renderer, printer, etc.).
- Returns
- A reference to this object.
Unsets the size, in centimeters, of the physical display (monitor, off-screen renderer, printer, etc.).
- Returns
- A reference to this object.
Unsets the number of pixels in the window.
- Returns
- A reference to this object.
Unsets the size, in centimeters, of the window.
- Returns
- A reference to this object.
The documentation for this class was generated from the following file:
- C:/git/visualize/hps/include/hps.h