The LinkKit class is a user space object. More...
#include <sprk_publish.h>
Public Member Functions | |
LinkKit () | |
The default constructor creates an empty LinkKit object. More... | |
LinkKit (LinkKit const &in_kit) | |
The copy constructor creates a new LinkKit object that contains the same settings as the source LinkKit. More... | |
LinkKit (LinkKit &&in_kit) | |
The move constructor creates a LinkKit by transferring the underlying object of the rvalue reference to this LinkKit. More... | |
virtual | ~LinkKit () |
HPS::Type | ObjectType () const |
void | Set (LinkKit const &in_kit) |
Copies the source LinkKit into this LinkKit. More... | |
void | Show (LinkKit &out_kit) const |
Copies this LinkKit into the given LinkKit. More... | |
LinkKit & | operator= (LinkKit const &in_kit) |
Copies the source LinkKit into this LinkKit. More... | |
LinkKit & | operator= (LinkKit &&in_kit) |
The move assignment operator transfers the underlying object of the rvalue reference to this LinkKit. More... | |
bool | Empty () const |
Indicates whether this LinkKit has any values set on it. More... | |
bool | Equals (LinkKit const &in_kit) const |
Check if the source LinkKit is equivalent to this LinkKit. More... | |
bool | operator== (LinkKit const &in_kit) const |
Check if the source LinkKit is equivalent to this LinkKit. More... | |
bool | operator!= (LinkKit const &in_kit) const |
Check if the source LinkKit is not equivalent to this LinkKit. More... | |
LinkKit & | SetJavaScript (char const *in_source, Source::Type in_type=Source::Type::Code) |
Sets the JavaScript source or file for the link. More... | |
LinkKit & | SetBorderWidth (int in_width) |
Sets the border width in points for the link. More... | |
LinkKit & | SetHighlighting (Highlighting::Mode in_mode) |
Sets the highlighting mode for the link. More... | |
LinkKit & | SetBorderColor (RGBColor const &in_color) |
Sets the color of the border for the link. More... | |
LinkKit & | UnsetJavaScript () |
Removes the JavaScript setting. More... | |
LinkKit & | UnsetBorderWidth () |
Removes the border width setting. More... | |
LinkKit & | UnsetHighlighting () |
Removes the highlighting mode setting. More... | |
LinkKit & | UnsetBorderColor () |
Removes the border color setting. More... | |
LinkKit & | UnsetEverything () |
Removes all data from the link. More... | |
bool | ShowJavaScript (UTF8 &out_source, Source::Type &out_type) const |
Shows the JavaScript setting. More... | |
bool | ShowBorderWidth (int &out_width) const |
Shows the border width setting. More... | |
bool | ShowHighlighting (Highlighting::Mode &out_mode) const |
Shows the highlighting mode setting. More... | |
bool | ShowBorderColor (RGBColor &out_color) const |
Shows the border color 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::PublishLinkKit |
The LinkKit class is a user space object.
It acts as the container for all data that can be used to specify a link for a Publish PDF.
HPS::Publish::LinkKit::LinkKit | ( | ) |
The default constructor creates an empty LinkKit object.
HPS::Publish::LinkKit::LinkKit | ( | LinkKit const & | in_kit | ) |
HPS::Publish::LinkKit::LinkKit | ( | LinkKit && | 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 LinkKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::Publish::LinkKit::Equals | ( | LinkKit 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::LinkKit::operator!= | ( | LinkKit const & | in_kit | ) | const |
bool HPS::Publish::LinkKit::operator== | ( | LinkKit 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::LinkKit::Set | ( | LinkKit const & | in_kit | ) |
Sets the color of the border for the link.
This corresponds to the value that will be passed to A3DPDFLinkData::m_sColor.
in_color | The color of the border for the link. |
LinkKit& HPS::Publish::LinkKit::SetBorderWidth | ( | int | in_width | ) |
Sets the border width in points for the link.
This corresponds to the value that will be passed to A3DPDFLinkData::m_iBorderWidth.
in_width | The border width in points for the link. |
LinkKit& HPS::Publish::LinkKit::SetHighlighting | ( | Highlighting::Mode | in_mode | ) |
Sets the highlighting mode for the link.
This corresponds to the value that will be passed to A3DPDFLinkData::m_eHighlightingMode.
in_mode | The highlighting mode for the link. |
LinkKit& HPS::Publish::LinkKit::SetJavaScript | ( | char const * | in_source, |
Source::Type | in_type = Source::Type::Code |
||
) |
Sets the JavaScript source or file for the link.
This corresponds to the value that will be passed to A3DPDFLinkData::m_pcJavascriptString.
in_source | The JavaScript source or file (depending on the next argument) for the link. |
in_type | The type of the preceding argument. Defaults to Source::Type::Code. |
void HPS::Publish::LinkKit::Show | ( | LinkKit & | out_kit | ) | const |
bool HPS::Publish::LinkKit::ShowBorderColor | ( | RGBColor & | out_color | ) | const |
Shows the border color setting.
out_color | The border color of the link. |
bool HPS::Publish::LinkKit::ShowBorderWidth | ( | int & | out_width | ) | const |
Shows the border width setting.
out_width | The border width of the link. |
bool HPS::Publish::LinkKit::ShowHighlighting | ( | Highlighting::Mode & | out_mode | ) | const |
Shows the highlighting mode setting.
out_mode | The highlighting mode of the link. |
bool HPS::Publish::LinkKit::ShowJavaScript | ( | UTF8 & | out_source, |
Source::Type & | out_type | ||
) | const |
Shows the JavaScript setting.
out_source | The JavaScript source or file (depending on the next argument) for the link. |
out_type | The type of the preceding argument. |
|
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.
LinkKit& HPS::Publish::LinkKit::UnsetBorderColor | ( | ) |
Removes the border color setting.
LinkKit& HPS::Publish::LinkKit::UnsetBorderWidth | ( | ) |
Removes the border width setting.
LinkKit& HPS::Publish::LinkKit::UnsetEverything | ( | ) |
Removes all data from the link.
LinkKit& HPS::Publish::LinkKit::UnsetHighlighting | ( | ) |
Removes the highlighting mode setting.
LinkKit& HPS::Publish::LinkKit::UnsetJavaScript | ( | ) |
Removes the JavaScript setting.
|
static |