The ImageKit class is a user space object. More...
#include <sprk_publish.h>
Public Member Functions | |
ImageKit () | |
The default constructor creates an empty ImageKit object. More... | |
ImageKit (ImageKit const &in_kit) | |
The copy constructor creates a new ImageKit object that contains the same settings as the source ImageKit. More... | |
ImageKit (ImageKit &&in_kit) | |
The move constructor creates an ImageKit by transferring the underlying object of the rvalue reference to this ImageKit. More... | |
virtual | ~ImageKit () |
HPS::Type | ObjectType () const |
void | Set (ImageKit const &in_kit) |
Copies the source ImageKit into this ImageKit. More... | |
void | Show (ImageKit &out_kit) const |
Copies this ImageKit into the given ImageKit. More... | |
ImageKit & | operator= (ImageKit const &in_kit) |
Copies the source ImageKit into this ImageKit. More... | |
ImageKit & | operator= (ImageKit &&in_kit) |
The move assignment operator transfers the underlying object of the rvalue reference to this ImageKit. More... | |
bool | Empty () const |
Indicates whether this ImageKit has any values set on it. More... | |
bool | Equals (ImageKit const &in_kit) const |
Check if the source ImageKit is equivalent to this ImageKit. More... | |
bool | operator== (ImageKit const &in_kit) const |
Check if the source ImageKit is equivalent to this ImageKit. More... | |
bool | operator!= (ImageKit const &in_kit) const |
Check if the source ImageKit is not equivalent to this ImageKit. More... | |
ImageKit & | SetFile (char const *in_filename) |
Sets the file for the image. More... | |
ImageKit & | SetSize (int in_width, int in_height) |
Sets the size of the image in pixels. More... | |
ImageKit & | SetFormat (Image::Format in_format) |
Sets the format of the image. More... | |
ImageKit & | UnsetFile () |
Removes the file from the image. More... | |
ImageKit & | UnsetSize () |
Removes the size from the image. More... | |
ImageKit & | UnsetFormat () |
Removes the format from the image. More... | |
ImageKit & | UnsetEverything () |
Removes all data from the image. More... | |
bool | ShowFile (UTF8 &out_filename) const |
Shows the file setting. More... | |
bool | ShowSize (int &out_width, int &out_height) const |
Shows the size setting. More... | |
bool | ShowFormat (Image::Format &out_format) const |
Shows the format setting. More... | |
virtual HPS::Type | Type () const |
This function returns the true type of the underlying object. More... | |
virtual void | Reset () |
Resets this object to its initial, uninitialized state. More... | |
bool | HasType (HPS::Type in_mask) const |
This function indicates whether this Object has the given Type mask. More... | |
intptr_t | GetClassID () const |
Returns a unique identifier that is shared by all objects of the same class. More... | |
intptr_t | GetInstanceID () const |
Returns an identifier that can be used to identify which instance of a class an object is. More... | |
Static Public Member Functions | |
template<typename T > | |
static intptr_t | ClassID () |
Unique identifier for this class. More... | |
Static Public Attributes | |
static const HPS::Type | staticType = HPS::Type::PublishImageKit |
The ImageKit class is a user space object.
It acts as the container for all data that can be used to specify an image for a Publish PDF.
HPS::Publish::ImageKit::ImageKit | ( | ) |
The default constructor creates an empty ImageKit object.
HPS::Publish::ImageKit::ImageKit | ( | ImageKit const & | in_kit | ) |
HPS::Publish::ImageKit::ImageKit | ( | ImageKit && | in_kit | ) |
|
virtual |
|
inlinestaticinherited |
Unique identifier for this class.
Note: this method uses construction of static objects. If used in a constructor, it should be used in the body not the initializer list.
|
virtual |
Indicates whether this ImageKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::Publish::ImageKit::Equals | ( | ImageKit const & | in_kit | ) | const |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
inherited |
Returns an identifier that can be used to identify which instance of a class an object is.
Different keys and controls will return the same value if they are backed by the same database resource.
|
inherited |
|
inlinevirtual |
bool HPS::Publish::ImageKit::operator!= | ( | ImageKit const & | in_kit | ) | const |
bool HPS::Publish::ImageKit::operator== | ( | ImageKit const & | in_kit | ) | const |
|
virtualinherited |
Resets this object to its initial, uninitialized state.
Reimplemented in HPS::EventHandler, HPS::EventDispatcher, HPS::World, HPS::HighlightSearchResults, HPS::HighlightSearchResultsIterator, HPS::SelectionResults, HPS::SelectionResultsIterator, HPS::FontSearchResults, HPS::FontSearchResultsIterator, HPS::SearchResults, and HPS::SearchResultsIterator.
void HPS::Publish::ImageKit::Set | ( | ImageKit const & | in_kit | ) |
ImageKit& HPS::Publish::ImageKit::SetFile | ( | char const * | in_filename | ) |
Sets the file for the image.
This corresponds to the value that will be passed to A3DPDFImageData::m_pcFileName.
in_filename | UTF8-encoded filename for the image. |
ImageKit& HPS::Publish::ImageKit::SetFormat | ( | Image::Format | in_format | ) |
Sets the format of the image.
This corresponds to the value that will be passed to A3DPDFImageData::m_eFormat.
in_format | The format of the image. |
ImageKit& HPS::Publish::ImageKit::SetSize | ( | int | in_width, |
int | in_height | ||
) |
Sets the size of the image in pixels.
This corresponds to the value that will be passed to A3DPDFImageData::m_iWidth and A3DPDFImageData::m_iHeight.
in_width | The width of the image in pixels. |
in_height | The height of the image in pixels. |
void HPS::Publish::ImageKit::Show | ( | ImageKit & | out_kit | ) | const |
bool HPS::Publish::ImageKit::ShowFile | ( | UTF8 & | out_filename | ) | const |
Shows the file setting.
out_filename | The filename for the image. |
bool HPS::Publish::ImageKit::ShowFormat | ( | Image::Format & | out_format | ) | const |
Shows the format setting.
out_format | The format of the image. |
bool HPS::Publish::ImageKit::ShowSize | ( | int & | out_width, |
int & | out_height | ||
) | const |
Shows the size setting.
out_width | The width of the image in pixels. |
out_height | The height of the image in pixels. |
|
virtualinherited |
This function returns the true type of the underlying object.
This function is useful for finding the type of smart pointer objects that have been cast to more generic types.
Reimplemented in HPS::UpdateOptionsControl, HPS::HighlightControl, HPS::SelectionOptionsControl, HPS::OffScreenWindowOptionsControl, HPS::ApplicationWindowOptionsControl, HPS::StandAloneWindowOptionsControl, HPS::AttributeLockControl, HPS::WindowInfoControl, HPS::DebuggingControl, HPS::SubwindowControl, HPS::ContourLineControl, HPS::VisualEffectsControl, HPS::TransformMaskControl, HPS::PostProcessEffectsControl, HPS::DrawingAttributeControl, HPS::HiddenLineAttributeControl, HPS::PerformanceControl, HPS::NURBSSurfaceAttributeControl, HPS::ConditionControl, HPS::StyleControl, HPS::PortfolioControl, HPS::MaterialMappingControl, HPS::TextureMatrixControl, HPS::ModellingMatrixControl, HPS::CurveAttributeControl, HPS::EdgeAttributeControl, HPS::LineAttributeControl, HPS::TextAttributeControl, HPS::CuttingSectionAttributeControl, HPS::CylinderAttributeControl, HPS::LightingAttributeControl, HPS::SphereAttributeControl, HPS::MarkerAttributeControl, HPS::CullingControl, HPS::ColorInterpolationControl, HPS::TransparencyControl, HPS::SelectabilityControl, HPS::CameraControl, HPS::VisibilityControl, HPS::BoundingControl, HPS::Kit, and HPS::Control.
ImageKit& HPS::Publish::ImageKit::UnsetEverything | ( | ) |
Removes all data from the image.
ImageKit& HPS::Publish::ImageKit::UnsetFile | ( | ) |
Removes the file from the image.
ImageKit& HPS::Publish::ImageKit::UnsetFormat | ( | ) |
Removes the format from the image.
ImageKit& HPS::Publish::ImageKit::UnsetSize | ( | ) |
Removes the size from the image.
|
static |