The ViewKit class is a user space object. More...
#include <sprk_publish.h>
Public Member Functions | |
ViewKit () | |
The default constructor creates an empty ViewKit object. More... | |
ViewKit (ViewKit const &in_kit) | |
The copy constructor creates a new ViewKit object that contains the same settings as the source ViewKit. More... | |
ViewKit (ViewKit &&in_kit) | |
The move constructor creates a ViewKit by transferring the underlying object of the rvalue reference to this ViewKit. More... | |
virtual | ~ViewKit () |
HPS::Type | ObjectType () const |
void | Set (ViewKit const &in_kit) |
Copies the source ViewKit into this ViewKit. More... | |
void | Show (ViewKit &out_kit) const |
Copies this ViewKit into the given ViewKit. More... | |
ViewKit & | operator= (ViewKit const &in_kit) |
Copies the source ViewKit into this ViewKit. More... | |
ViewKit & | operator= (ViewKit &&in_kit) |
The move assignment operator transfers the underlying object of the rvalue reference to this ViewKit. More... | |
bool | Empty () const |
Indicates whether this ViewKit has any values set on it. More... | |
bool | Equals (ViewKit const &in_kit) const |
Check if the source ViewKit is equivalent to this ViewKit. More... | |
bool | operator== (ViewKit const &in_kit) const |
Check if the source ViewKit is equivalent to this ViewKit. More... | |
bool | operator!= (ViewKit const &in_kit) const |
Check if the source ViewKit is not equivalent to this ViewKit. More... | |
ViewKit & | SetInternalName (char const *in_name) |
Sets the internal name for the view. More... | |
ViewKit & | SetExternalName (char const *in_name) |
Sets the external name for the view. More... | |
ViewKit & | SetCamera (CameraKit const &in_camera) |
Sets the camera for the view. More... | |
ViewKit & | SetDefault (bool in_state) |
Sets whether this view is the default view. More... | |
ViewKit & | SetBackgroundColor (RGBColor const &in_color) |
Sets the background color for the view. More... | |
ViewKit & | SetLighting (Lighting::Mode in_mode) |
Sets the lighting mode for the view. More... | |
ViewKit & | SetRendering (Rendering::Mode in_mode) |
Sets the rendering mode for the view. More... | |
ViewKit & | UnsetInternalName () |
Removes the internal name setting. More... | |
ViewKit & | UnsetExternalName () |
Removes the external name setting. More... | |
ViewKit & | UnsetCamera () |
Removes the camera setting. More... | |
ViewKit & | UnsetDefault () |
Removes the default setting. More... | |
ViewKit & | UnsetBackgroundColor () |
Removes the background color setting. More... | |
ViewKit & | UnsetLighting () |
Removes the lighting mode setting. More... | |
ViewKit & | UnsetRendering () |
Removes the rendering mode setting. More... | |
ViewKit & | UnsetEverything () |
Removes all data from the view. More... | |
bool | ShowInternalName (UTF8 &out_name) const |
Shows the internal name setting. More... | |
bool | ShowExternalName (UTF8 &out_name) const |
Shows the external name setting. More... | |
bool | ShowCamera (CameraKit &out_camera) const |
Shows the camera setting. More... | |
bool | ShowDefault (bool &out_state) const |
Shows the default setting. More... | |
bool | ShowBackgroundColor (RGBColor &out_color) const |
Shows the background color for the view. More... | |
bool | ShowLighting (Lighting::Mode &out_mode) const |
Shows the lighting mode for the view. More... | |
bool | ShowRendering (Rendering::Mode &out_mode) const |
Shows the rendering mode for the view. 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 | |
static ViewKit | GetDefault () |
Creates a ViewKit which contains the default settings. More... | |
template<typename T > | |
static intptr_t | ClassID () |
Unique identifier for this class. More... | |
Static Public Attributes | |
static const HPS::Type | staticType = HPS::Type::PublishViewKit |
The ViewKit class is a user space object.
It acts as the container for all data that can be set on a view in a Publish PDF.
HPS::Publish::ViewKit::ViewKit | ( | ) |
The default constructor creates an empty ViewKit object.
HPS::Publish::ViewKit::ViewKit | ( | ViewKit const & | in_kit | ) |
HPS::Publish::ViewKit::ViewKit | ( | ViewKit && | 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 ViewKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::Publish::ViewKit::Equals | ( | ViewKit const & | in_kit | ) | const |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates a ViewKit which contains the default settings.
The returned object will not necessarily have values for every setting, but it will have them where it is reasonable to have a default. These values will be used for export unless a setting is overridden by the ViewKit passed to File::Export.
|
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::ViewKit::operator!= | ( | ViewKit const & | in_kit | ) | const |
bool HPS::Publish::ViewKit::operator== | ( | ViewKit 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::ViewKit::Set | ( | ViewKit const & | in_kit | ) |
Sets the background color for the view.
This corresponds to the value that will be passed to A3DPDFViewData::m_sViewBackgroundColor.
in_color | The background color for the view. |
Sets the camera for the view.
This corresponds to the values that will be passed to A3DPDFViewData::m_sPosition, A3DPDFViewData::m_sTarget, A3DPDFViewData::m_sUpVector, A3DPDFViewData::m_dZoomFactor, A3DPDFViewData::m_eProjectionMode, and A3DPDFViewData::m_dFieldOfView.
in_camera | The camera for the view. |
ViewKit& HPS::Publish::ViewKit::SetDefault | ( | bool | in_state | ) |
Sets whether this view is the default view.
This corresponds to the value that will be passed to A3DPDFViewData::m_bIsDefault.
in_state | Whether this view is the default view. |
ViewKit& HPS::Publish::ViewKit::SetExternalName | ( | char const * | in_name | ) |
Sets the external name for the view.
This corresponds to the value that will be passed to A3DPDFViewData::m_pcExternalName.
in_name | UTF8-encoded external name for the view. |
ViewKit& HPS::Publish::ViewKit::SetInternalName | ( | char const * | in_name | ) |
Sets the internal name for the view.
in_name | UTF8-encoded internal name for the view. This corresponds to the value that will be passed to A3DPDFViewData::m_pcInternalName. |
ViewKit& HPS::Publish::ViewKit::SetLighting | ( | Lighting::Mode | in_mode | ) |
Sets the lighting mode for the view.
This corresponds to the value that will be passed to A3DPDFViewData::m_eViewLighting.
in_mode | The lighting mode for the view. |
ViewKit& HPS::Publish::ViewKit::SetRendering | ( | Rendering::Mode | in_mode | ) |
Sets the rendering mode for the view.
This corresponds to the value that will be passed to A3DPDFViewData::m_eRenderingStyle.
in_mode | The rendering mode for the view. |
void HPS::Publish::ViewKit::Show | ( | ViewKit & | out_kit | ) | const |
bool HPS::Publish::ViewKit::ShowBackgroundColor | ( | RGBColor & | out_color | ) | const |
Shows the background color for the view.
out_color | The background color for the view. |
bool HPS::Publish::ViewKit::ShowCamera | ( | CameraKit & | out_camera | ) | const |
Shows the camera setting.
out_camera | The camera for the view. |
bool HPS::Publish::ViewKit::ShowDefault | ( | bool & | out_state | ) | const |
Shows the default setting.
out_state | Whether this view is the default view. |
bool HPS::Publish::ViewKit::ShowExternalName | ( | UTF8 & | out_name | ) | const |
Shows the external name setting.
out_name | The external name for the view. |
bool HPS::Publish::ViewKit::ShowInternalName | ( | UTF8 & | out_name | ) | const |
Shows the internal name setting.
out_name | The internal name for the view. |
bool HPS::Publish::ViewKit::ShowLighting | ( | Lighting::Mode & | out_mode | ) | const |
Shows the lighting mode for the view.
out_mode | The lighting mode for the view. |
bool HPS::Publish::ViewKit::ShowRendering | ( | Rendering::Mode & | out_mode | ) | const |
Shows the rendering mode for the view.
out_mode | The rendering mode for the view. |
|
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.
ViewKit& HPS::Publish::ViewKit::UnsetBackgroundColor | ( | ) |
Removes the background color setting.
ViewKit& HPS::Publish::ViewKit::UnsetCamera | ( | ) |
Removes the camera setting.
ViewKit& HPS::Publish::ViewKit::UnsetDefault | ( | ) |
Removes the default setting.
ViewKit& HPS::Publish::ViewKit::UnsetEverything | ( | ) |
Removes all data from the view.
ViewKit& HPS::Publish::ViewKit::UnsetExternalName | ( | ) |
Removes the external name setting.
ViewKit& HPS::Publish::ViewKit::UnsetInternalName | ( | ) |
Removes the internal name setting.
ViewKit& HPS::Publish::ViewKit::UnsetLighting | ( | ) |
Removes the lighting mode setting.
ViewKit& HPS::Publish::ViewKit::UnsetRendering | ( | ) |
Removes the rendering mode setting.
|
static |