The ArtworkKit class is a user space object. More...
#include <sprk_publish.h>
Public Member Functions | |
ArtworkKit () | |
The default constructor creates an empty ArtworkKit object. More... | |
ArtworkKit (ArtworkKit const &in_kit) | |
The copy constructor creates a new ArtworkKit object that contains the same settings as the source ArtworkKit. More... | |
ArtworkKit (ArtworkKit &&in_kit) | |
The move constructor creates an ArtworkKit by transferring the underlying object of the rvalue reference to this ArtworkKit. More... | |
virtual | ~ArtworkKit () |
HPS::Type | ObjectType () const |
void | Set (ArtworkKit const &in_kit) |
Copies the source ArtworkKit into this ArtworkKit. More... | |
void | Show (ArtworkKit &out_kit) const |
Copies this ArtworkKit into the given ArtworkKit. More... | |
ArtworkKit & | operator= (ArtworkKit const &in_kit) |
Copies the source ArtworkKit into this ArtworkKit. More... | |
ArtworkKit & | operator= (ArtworkKit &&in_kit) |
The move assignment operator transfers the underlying object of the rvalue reference to this ArtworkKit. More... | |
bool | Empty () const |
Indicates whether this ArtworkKit has any values set on it. More... | |
bool | Equals (ArtworkKit const &in_kit) const |
Check if the source ArtworkKit is equivalent to this ArtworkKit. More... | |
bool | operator== (ArtworkKit const &in_kit) const |
Check if the source ArtworkKit is equivalent to this ArtworkKit. More... | |
bool | operator!= (ArtworkKit const &in_kit) const |
Check if the source ArtworkKit is not equivalent to this ArtworkKit. More... | |
ArtworkKit & | SetAnimationStyle (Animation::Style in_style) |
Sets the animation style for the artwork. More... | |
ArtworkKit & | SetJavaScript (char const *in_source, Source::Type in_type=Source::Type::Code) |
Sets the JavaScript source or file for the artwork. More... | |
ArtworkKit & | SetPMICrossHighlighting (bool in_state) |
Sets the whether to enable PMI cross-highlighting for the artwork. More... | |
ArtworkKit & | SetPMISemanticInformation (bool in_state) |
Sets the whether to include semantic PMI information in the artwork. More... | |
ArtworkKit & | SetDefaultViewPreference (Artwork::View::Preference in_preference) |
Sets the default view preference for the artwork. More... | |
ArtworkKit & | SetDisplayPreference (Artwork::Display::Preference in_preference) |
Sets the display preference for the artwork. More... | |
ArtworkKit & | SetView (ViewKit const &in_view) |
Adds a view to the artwork. More... | |
ArtworkKit & | AddView (ViewKit const &in_view) |
Adds a view to the artwork. More... | |
ArtworkKit & | SetViews (size_t in_count, ViewKit const in_views[]) |
Adds views to the artwork. More... | |
ArtworkKit & | SetViews (ViewKitArray const &in_views) |
Adds views to the artwork. More... | |
ArtworkKit & | AddViews (size_t in_count, ViewKit const in_views[]) |
Adds views to the artwork. More... | |
ArtworkKit & | AddViews (ViewKitArray const &in_views) |
Adds views to the artwork. More... | |
ArtworkKit & | SetPMIColor (HPS::RGBColor const &in_pmi_color) |
Sets the PMI color for this artwork. More... | |
ArtworkKit & | UnsetAnimationStyle () |
Removes the animation style setting. More... | |
ArtworkKit & | UnsetJavaScript () |
Removes the JavaScript setting. More... | |
ArtworkKit & | UnsetPMICrossHighlighting () |
Removes the PMI cross-highlighting setting. More... | |
ArtworkKit & | UnsetPMISemanticInformation () |
Removes the PMI semantic information setting. More... | |
ArtworkKit & | UnsetDefaultViewPreference () |
Removes the default view preference setting. More... | |
ArtworkKit & | UnsetDisplayPreference () |
Removes the display preference setting. More... | |
ArtworkKit & | UnsetView (size_t in_index) |
Removes the view at the given index from the artwork. More... | |
ArtworkKit & | UnsetViews (size_t in_count, size_t const in_indices[]) |
Removes the views at the given indices from the artwork. More... | |
ArtworkKit & | UnsetViews (SizeTArray const &in_indices) |
Removes the views at the given indices from the artwork. More... | |
ArtworkKit & | UnsetViews () |
Removes all views from the artwork. More... | |
ArtworkKit & | UnsetPMIColor () |
Removes the PMI color setting from the artwork. More... | |
ArtworkKit & | UnsetEverything () |
Removes all data from the artwork. More... | |
bool | ShowAnimationStyle (Animation::Style &out_style) const |
Shows the animation style setting. More... | |
bool | ShowJavaScript (UTF8 &out_source, Source::Type &out_type) const |
Shows the JavaScript setting. More... | |
bool | ShowPMICrossHighlighting (bool &out_state) const |
Shows the PMI cross-highlighting setting. More... | |
bool | ShowPMISemanticInformation (bool &out_state) const |
Shows the semantic PMI information setting. More... | |
bool | ShowDefaultViewPreference (Artwork::View::Preference &out_preference) const |
Shows the default view preference setting. More... | |
bool | ShowDisplayPreference (Artwork::Display::Preference &out_preference) const |
Shows the display preference setting. More... | |
bool | ShowViews (ViewKitArray &out_views) const |
Shows the views for the artwork. More... | |
bool | ShowPMIColor (HPS::RGBColor &out_pmi_color) const |
Shows the PMI color for the artwork. 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 ArtworkKit | GetDefault () |
Creates a ArtworkKit 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::PublishArtworkKit |
The ArtworkKit class is a user space object.
It acts as the container for all data that can be on an artwork in a Publish PDF.
HPS::Publish::ArtworkKit::ArtworkKit | ( | ) |
The default constructor creates an empty ArtworkKit object.
HPS::Publish::ArtworkKit::ArtworkKit | ( | ArtworkKit const & | in_kit | ) |
The copy constructor creates a new ArtworkKit object that contains the same settings as the source ArtworkKit.
in_kit | The source ArtworkKit to copy. |
HPS::Publish::ArtworkKit::ArtworkKit | ( | ArtworkKit && | in_kit | ) |
The move constructor creates an ArtworkKit by transferring the underlying object of the rvalue reference to this ArtworkKit.
in_kit | An rvalue reference to an ArtworkKit to take the underlying object from. |
|
virtual |
ArtworkKit& HPS::Publish::ArtworkKit::AddView | ( | ViewKit const & | in_view | ) |
Adds a view to the artwork.
This will append the view to any existing views on the artwork. These correspond to values that will be passed to A3DPDF3DArtworkAddView.
in_view | The view to add to the artwork. |
ArtworkKit& HPS::Publish::ArtworkKit::AddViews | ( | size_t | in_count, |
ViewKit const | in_views[] | ||
) |
Adds views to the artwork.
This will append the views to any existing views on the artwork. These correspond to values that will be passed to A3DPDF3DArtworkAddView.
in_count | Size of the following array. |
in_views | The views to add to the artwork. |
ArtworkKit& HPS::Publish::ArtworkKit::AddViews | ( | ViewKitArray const & | in_views | ) |
Adds views to the artwork.
This will append the views to any existing views on the artwork. These correspond to values that will be passed to A3DPDF3DArtworkAddView.
in_views | The views to add to the artwork. |
|
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 ArtworkKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::Publish::ArtworkKit::Equals | ( | ArtworkKit const & | in_kit | ) | const |
Check if the source ArtworkKit is equivalent to this ArtworkKit.
in_kit | The source ArtworkKit to compare to this ArtworkKit. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates a ArtworkKit 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 ArtworkKit 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::ArtworkKit::operator!= | ( | ArtworkKit const & | in_kit | ) | const |
Check if the source ArtworkKit is not equivalent to this ArtworkKit.
in_kit | The source ArtworkKit to compare to this ArtworkKit. |
ArtworkKit& HPS::Publish::ArtworkKit::operator= | ( | ArtworkKit const & | in_kit | ) |
Copies the source ArtworkKit into this ArtworkKit.
in_kit | The source ArtworkKit to copy. |
ArtworkKit& HPS::Publish::ArtworkKit::operator= | ( | ArtworkKit && | in_kit | ) |
The move assignment operator transfers the underlying object of the rvalue reference to this ArtworkKit.
in_kit | An rvalue reference to an ArtworkKit to take the underlying object from. |
bool HPS::Publish::ArtworkKit::operator== | ( | ArtworkKit const & | in_kit | ) | const |
Check if the source ArtworkKit is equivalent to this ArtworkKit.
in_kit | The source ArtworkKit to compare to this ArtworkKit. |
|
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::ArtworkKit::Set | ( | ArtworkKit const & | in_kit | ) |
Copies the source ArtworkKit into this ArtworkKit.
in_kit | The source ArtworkKit to copy. |
ArtworkKit& HPS::Publish::ArtworkKit::SetAnimationStyle | ( | Animation::Style | in_style | ) |
Sets the animation style for the artwork.
This corresponds to the value that will be passed to A3DPDF3DArtworkData::m_eAnimationStyle.
in_style | The animation style for the artwork. |
ArtworkKit& HPS::Publish::ArtworkKit::SetDefaultViewPreference | ( | Artwork::View::Preference | in_preference | ) |
Sets the default view preference for the artwork.
This corresponds to the value that will be passed to A3DPDF3DArtworkData::m_bKeepNativeDefaultView.
in_preference | The default view preference for the artwork. |
ArtworkKit& HPS::Publish::ArtworkKit::SetDisplayPreference | ( | Artwork::Display::Preference | in_preference | ) |
Sets the display preference for the artwork.
This corresponds to the value that will be passed to A3DPDF3DArtworkData::m_bUseRuntimeDisplaySettings.
in_preference | The display preference for the artwork. |
ArtworkKit& HPS::Publish::ArtworkKit::SetJavaScript | ( | char const * | in_source, |
Source::Type | in_type = Source::Type::Code |
||
) |
Sets the JavaScript source or file for the artwork.
This corresponds to the value that will be passed to A3DPDF3DArtworkData::m_pcJavaScriptFileName.
in_source | The JavaScript source or file (depending on the next argument) for the artwork. |
in_type | The type of the preceding argument. Defaults to Source::Type::Code. |
ArtworkKit& HPS::Publish::ArtworkKit::SetPMIColor | ( | HPS::RGBColor const & | in_pmi_color | ) |
Sets the PMI color for this artwork.
This correspond to value that will be passed to A3DPDF3DArtworkData::m_sPMIColor .
in_pmi_color | The color to apply to PMIs for this artwork. |
ArtworkKit& HPS::Publish::ArtworkKit::SetPMICrossHighlighting | ( | bool | in_state | ) |
Sets the whether to enable PMI cross-highlighting for the artwork.
This corresponds to the value that will be passed to A3DPDF3DArtworkData::m_bActivatePMICrossHighlight.
in_state | Whether to highlight the geometry associated with a piece of PMI when that PMI is selected. |
ArtworkKit& HPS::Publish::ArtworkKit::SetPMISemanticInformation | ( | bool | in_state | ) |
Sets the whether to include semantic PMI information in the artwork.
This corresponds to the value that will be passed to A3DPDF3DArtworkData::m_bAddPMISemanticInformation.
in_state | Whether to include semantic PMI information in the artwork. |
ArtworkKit& HPS::Publish::ArtworkKit::SetView | ( | ViewKit const & | in_view | ) |
Adds a view to the artwork.
This will replace all views (if any) on the artwork. This corresponds to the value that will be passed to A3DPDF3DArtworkAddView.
in_view | The view to add to the artwork. |
ArtworkKit& HPS::Publish::ArtworkKit::SetViews | ( | size_t | in_count, |
ViewKit const | in_views[] | ||
) |
Adds views to the artwork.
This will replace all views (if any) on the artwork. These correspond to values that will be passed to A3DPDF3DArtworkAddView.
in_count | Size of the following array. |
in_views | The views to add to the artwork. |
ArtworkKit& HPS::Publish::ArtworkKit::SetViews | ( | ViewKitArray const & | in_views | ) |
Adds views to the artwork.
This will replace all views (if any) on the artwork. These correspond to values that will be passed to A3DPDF3DArtworkAddView.
in_views | The views to add to the artwork. |
void HPS::Publish::ArtworkKit::Show | ( | ArtworkKit & | out_kit | ) | const |
Copies this ArtworkKit into the given ArtworkKit.
out_kit | The ArtworkKit to populate with the contents of this ArtworkKit. |
bool HPS::Publish::ArtworkKit::ShowAnimationStyle | ( | Animation::Style & | out_style | ) | const |
Shows the animation style setting.
out_style | The animation style of the artwork. |
bool HPS::Publish::ArtworkKit::ShowDefaultViewPreference | ( | Artwork::View::Preference & | out_preference | ) | const |
Shows the default view preference setting.
out_preference | The default view preference for the artwork. |
bool HPS::Publish::ArtworkKit::ShowDisplayPreference | ( | Artwork::Display::Preference & | out_preference | ) | const |
Shows the display preference setting.
out_preference | The display preference for the artwork. |
bool HPS::Publish::ArtworkKit::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 artwork. |
out_type | The type of the preceding argument. |
bool HPS::Publish::ArtworkKit::ShowPMIColor | ( | HPS::RGBColor & | out_pmi_color | ) | const |
Shows the PMI color for the artwork.
out_pmi_color | The PMI color for the artwork. |
bool HPS::Publish::ArtworkKit::ShowPMICrossHighlighting | ( | bool & | out_state | ) | const |
Shows the PMI cross-highlighting setting.
out_state | Whether to highlight the geometry associated with a piece of PMI when that PMI is selected. |
bool HPS::Publish::ArtworkKit::ShowPMISemanticInformation | ( | bool & | out_state | ) | const |
Shows the semantic PMI information setting.
out_state | Whether to include semantic PMI information in the artwork. |
bool HPS::Publish::ArtworkKit::ShowViews | ( | ViewKitArray & | out_views | ) | const |
Shows the views for the artwork.
out_views | The views for the artwork. |
|
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.
ArtworkKit& HPS::Publish::ArtworkKit::UnsetAnimationStyle | ( | ) |
Removes the animation style setting.
ArtworkKit& HPS::Publish::ArtworkKit::UnsetDefaultViewPreference | ( | ) |
Removes the default view preference setting.
ArtworkKit& HPS::Publish::ArtworkKit::UnsetDisplayPreference | ( | ) |
Removes the display preference setting.
ArtworkKit& HPS::Publish::ArtworkKit::UnsetEverything | ( | ) |
Removes all data from the artwork.
ArtworkKit& HPS::Publish::ArtworkKit::UnsetJavaScript | ( | ) |
Removes the JavaScript setting.
ArtworkKit& HPS::Publish::ArtworkKit::UnsetPMIColor | ( | ) |
Removes the PMI color setting from the artwork.
ArtworkKit& HPS::Publish::ArtworkKit::UnsetPMICrossHighlighting | ( | ) |
Removes the PMI cross-highlighting setting.
ArtworkKit& HPS::Publish::ArtworkKit::UnsetPMISemanticInformation | ( | ) |
Removes the PMI semantic information setting.
ArtworkKit& HPS::Publish::ArtworkKit::UnsetView | ( | size_t | in_index | ) |
Removes the view at the given index from the artwork.
in_index | Index of the view to remove from the artwork. |
ArtworkKit& HPS::Publish::ArtworkKit::UnsetViews | ( | size_t | in_count, |
size_t const | in_indices[] | ||
) |
Removes the views at the given indices from the artwork.
in_count | Size of the following array. |
in_indices | Indices of the views to remove from the artwork. |
ArtworkKit& HPS::Publish::ArtworkKit::UnsetViews | ( | SizeTArray const & | in_indices | ) |
Removes the views at the given indices from the artwork.
in_indices | Indices of the views to remove from the artwork. |
ArtworkKit& HPS::Publish::ArtworkKit::UnsetViews | ( | ) |
Removes all views from the artwork.
|
static |