Hoops Visualize HPS  version 2018-SP2
Hoops Visualize HPS 3D Rendering Engine
Looking for a senior C++ dev?
I'm looking for work. Hire me!
HPS::Publish::ArtworkKit Class Reference

The ArtworkKit class is a user space object. More...

#include <sprk_publish.h>

Inheritance diagram for HPS::Publish::ArtworkKit:
Collaboration diagram for HPS::Publish::ArtworkKit:

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...
 
ArtworkKitoperator= (ArtworkKit const &in_kit)
 Copies the source ArtworkKit into this ArtworkKit. More...
 
ArtworkKitoperator= (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...
 
ArtworkKitSetAnimationStyle (Animation::Style in_style)
 Sets the animation style for the artwork. More...
 
ArtworkKitSetJavaScript (char const *in_source, Source::Type in_type=Source::Type::Code)
 Sets the JavaScript source or file for the artwork. More...
 
ArtworkKitSetPMICrossHighlighting (bool in_state)
 Sets the whether to enable PMI cross-highlighting for the artwork. More...
 
ArtworkKitSetPMISemanticInformation (bool in_state)
 Sets the whether to include semantic PMI information in the artwork. More...
 
ArtworkKitSetDefaultViewPreference (Artwork::View::Preference in_preference)
 Sets the default view preference for the artwork. More...
 
ArtworkKitSetDisplayPreference (Artwork::Display::Preference in_preference)
 Sets the display preference for the artwork. More...
 
ArtworkKitSetView (ViewKit const &in_view)
 Adds a view to the artwork. More...
 
ArtworkKitAddView (ViewKit const &in_view)
 Adds a view to the artwork. More...
 
ArtworkKitSetViews (size_t in_count, ViewKit const in_views[])
 Adds views to the artwork. More...
 
ArtworkKitSetViews (ViewKitArray const &in_views)
 Adds views to the artwork. More...
 
ArtworkKitAddViews (size_t in_count, ViewKit const in_views[])
 Adds views to the artwork. More...
 
ArtworkKitAddViews (ViewKitArray const &in_views)
 Adds views to the artwork. More...
 
ArtworkKitSetPMIColor (HPS::RGBColor const &in_pmi_color)
 Sets the PMI color for this artwork. More...
 
ArtworkKitUnsetAnimationStyle ()
 Removes the animation style setting. More...
 
ArtworkKitUnsetJavaScript ()
 Removes the JavaScript setting. More...
 
ArtworkKitUnsetPMICrossHighlighting ()
 Removes the PMI cross-highlighting setting. More...
 
ArtworkKitUnsetPMISemanticInformation ()
 Removes the PMI semantic information setting. More...
 
ArtworkKitUnsetDefaultViewPreference ()
 Removes the default view preference setting. More...
 
ArtworkKitUnsetDisplayPreference ()
 Removes the display preference setting. More...
 
ArtworkKitUnsetView (size_t in_index)
 Removes the view at the given index from the artwork. More...
 
ArtworkKitUnsetViews (size_t in_count, size_t const in_indices[])
 Removes the views at the given indices from the artwork. More...
 
ArtworkKitUnsetViews (SizeTArray const &in_indices)
 Removes the views at the given indices from the artwork. More...
 
ArtworkKitUnsetViews ()
 Removes all views from the artwork. More...
 
ArtworkKitUnsetPMIColor ()
 Removes the PMI color setting from the artwork. More...
 
ArtworkKitUnsetEverything ()
 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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ArtworkKit() [1/3]

HPS::Publish::ArtworkKit::ArtworkKit ( )

The default constructor creates an empty ArtworkKit object.

◆ ArtworkKit() [2/3]

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.

Parameters
in_kitThe source ArtworkKit to copy.

◆ ArtworkKit() [3/3]

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.

Parameters
in_kitAn rvalue reference to an ArtworkKit to take the underlying object from.

◆ ~ArtworkKit()

virtual HPS::Publish::ArtworkKit::~ArtworkKit ( )
virtual

Member Function Documentation

◆ AddView()

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.

Parameters
in_viewThe view to add to the artwork.
Returns
A reference to this ArtworkKit.

◆ AddViews() [1/2]

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.

Parameters
in_countSize of the following array.
in_viewsThe views to add to the artwork.
Returns
A reference to this ArtworkKit.

◆ AddViews() [2/2]

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.

Parameters
in_viewsThe views to add to the artwork.
Returns
A reference to this ArtworkKit.

◆ ClassID()

template<typename T >
static intptr_t HPS::Object::ClassID ( )
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.

◆ Empty()

bool HPS::Publish::ArtworkKit::Empty ( ) const
virtual

Indicates whether this ArtworkKit has any values set on it.

Returns
true if no values are set on this ArtworkKit, false otherwise.

Reimplemented from HPS::Object.

◆ Equals()

bool HPS::Publish::ArtworkKit::Equals ( ArtworkKit const &  in_kit) const

Check if the source ArtworkKit is equivalent to this ArtworkKit.

Parameters
in_kitThe source ArtworkKit to compare to this ArtworkKit.
Returns
true if the objects are equivalent, false otherwise.

◆ GetClassID()

intptr_t HPS::Object::GetClassID ( ) const
inherited

Returns a unique identifier that is shared by all objects of the same class.

Returns
A unique value shared by all objects of the same class.

◆ GetDefault()

static ArtworkKit HPS::Publish::ArtworkKit::GetDefault ( )
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.

Returns
A ArtworkKit with the default settings.

◆ GetInstanceID()

intptr_t HPS::Object::GetInstanceID ( ) const
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.

Returns
A value unique to an instance of an object and all objects that are backed by the same database resource.

◆ HasType()

bool HPS::Object::HasType ( HPS::Type  in_mask) const
inherited

This function indicates whether this Object has the given Type mask.

Parameters
in_maskThe Type mask to check against this Object.
Returns
true if this Object has the given Type mask, false otherwise.

◆ ObjectType()

HPS::Type HPS::Publish::ArtworkKit::ObjectType ( ) const
inlinevirtual

Reimplemented from HPS::SprocketKit.

Here is the call graph for this function:

◆ operator!=()

bool HPS::Publish::ArtworkKit::operator!= ( ArtworkKit const &  in_kit) const

Check if the source ArtworkKit is not equivalent to this ArtworkKit.

Parameters
in_kitThe source ArtworkKit to compare to this ArtworkKit.
Returns
true if the objects are not equivalent, false otherwise.

◆ operator=() [1/2]

ArtworkKit& HPS::Publish::ArtworkKit::operator= ( ArtworkKit const &  in_kit)

Copies the source ArtworkKit into this ArtworkKit.

Parameters
in_kitThe source ArtworkKit to copy.
Returns
A reference to this ArtworkKit.

◆ operator=() [2/2]

ArtworkKit& HPS::Publish::ArtworkKit::operator= ( ArtworkKit &&  in_kit)

The move assignment operator transfers the underlying object of the rvalue reference to this ArtworkKit.

Parameters
in_kitAn rvalue reference to an ArtworkKit to take the underlying object from.
Returns
A reference to this ArtworkKit.

◆ operator==()

bool HPS::Publish::ArtworkKit::operator== ( ArtworkKit const &  in_kit) const

Check if the source ArtworkKit is equivalent to this ArtworkKit.

Parameters
in_kitThe source ArtworkKit to compare to this ArtworkKit.
Returns
true if the objects are equivalent, false otherwise.

◆ Reset()

◆ Set()

void HPS::Publish::ArtworkKit::Set ( ArtworkKit const &  in_kit)

Copies the source ArtworkKit into this ArtworkKit.

Parameters
in_kitThe source ArtworkKit to copy.

◆ SetAnimationStyle()

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.

Parameters
in_styleThe animation style for the artwork.
Returns
A reference to this ArtworkKit.

◆ SetDefaultViewPreference()

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.

Parameters
in_preferenceThe default view preference for the artwork.
Returns
A reference to this ArtworkKit.

◆ SetDisplayPreference()

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.

Parameters
in_preferenceThe display preference for the artwork.
Returns
A reference to this ArtworkKit.

◆ SetJavaScript()

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.

Parameters
in_sourceThe JavaScript source or file (depending on the next argument) for the artwork.
in_typeThe type of the preceding argument. Defaults to Source::Type::Code.
Returns
A reference to this ArtworkKit.

◆ SetPMIColor()

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 .

Parameters
in_pmi_colorThe color to apply to PMIs for this artwork.
Returns
A reference to this ArtworkKit.

◆ SetPMICrossHighlighting()

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.

Parameters
in_stateWhether to highlight the geometry associated with a piece of PMI when that PMI is selected.
Returns
A reference to this ArtworkKit.

◆ SetPMISemanticInformation()

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.

Parameters
in_stateWhether to include semantic PMI information in the artwork.
Returns
A reference to this ArtworkKit.

◆ SetView()

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.

Parameters
in_viewThe view to add to the artwork.
Returns
A reference to this ArtworkKit.

◆ SetViews() [1/2]

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.

Parameters
in_countSize of the following array.
in_viewsThe views to add to the artwork.
Returns
A reference to this ArtworkKit.

◆ SetViews() [2/2]

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.

Parameters
in_viewsThe views to add to the artwork.
Returns
A reference to this ArtworkKit.

◆ Show()

void HPS::Publish::ArtworkKit::Show ( ArtworkKit out_kit) const

Copies this ArtworkKit into the given ArtworkKit.

Parameters
out_kitThe ArtworkKit to populate with the contents of this ArtworkKit.

◆ ShowAnimationStyle()

bool HPS::Publish::ArtworkKit::ShowAnimationStyle ( Animation::Style out_style) const

Shows the animation style setting.

Parameters
out_styleThe animation style of the artwork.
Returns
true if an animation style was specified, false otherwise.

◆ ShowDefaultViewPreference()

bool HPS::Publish::ArtworkKit::ShowDefaultViewPreference ( Artwork::View::Preference out_preference) const

Shows the default view preference setting.

Parameters
out_preferenceThe default view preference for the artwork.
Returns
true if a default view preference was specified, false otherwise.

◆ ShowDisplayPreference()

bool HPS::Publish::ArtworkKit::ShowDisplayPreference ( Artwork::Display::Preference out_preference) const

Shows the display preference setting.

Parameters
out_preferenceThe display preference for the artwork.
Returns
true if a display preference was specified, false otherwise.

◆ ShowJavaScript()

bool HPS::Publish::ArtworkKit::ShowJavaScript ( UTF8 out_source,
Source::Type out_type 
) const

Shows the JavaScript setting.

Parameters
out_sourceThe JavaScript source or file (depending on the next argument) for the artwork.
out_typeThe type of the preceding argument.
Returns
true if a JavaScript source or file was specified, false otherwise.

◆ ShowPMIColor()

bool HPS::Publish::ArtworkKit::ShowPMIColor ( HPS::RGBColor out_pmi_color) const

Shows the PMI color for the artwork.

Parameters
out_pmi_colorThe PMI color for the artwork.
Returns
true if a PMI color was specified, false otherwise.

◆ ShowPMICrossHighlighting()

bool HPS::Publish::ArtworkKit::ShowPMICrossHighlighting ( bool &  out_state) const

Shows the PMI cross-highlighting setting.

Parameters
out_stateWhether to highlight the geometry associated with a piece of PMI when that PMI is selected.
Returns
true if a PMI cross-highlighting setting was specified, false otherwise.

◆ ShowPMISemanticInformation()

bool HPS::Publish::ArtworkKit::ShowPMISemanticInformation ( bool &  out_state) const

Shows the semantic PMI information setting.

Parameters
out_stateWhether to include semantic PMI information in the artwork.
Returns
true if a semantic PMI information setting was specified, false otherwise.

◆ ShowViews()

bool HPS::Publish::ArtworkKit::ShowViews ( ViewKitArray out_views) const

Shows the views for the artwork.

Parameters
out_viewsThe views for the artwork.
Returns
true if views were specified, false otherwise.

◆ Type()

◆ UnsetAnimationStyle()

ArtworkKit& HPS::Publish::ArtworkKit::UnsetAnimationStyle ( )

Removes the animation style setting.

Returns
A reference to this ArtworkKit.

◆ UnsetDefaultViewPreference()

ArtworkKit& HPS::Publish::ArtworkKit::UnsetDefaultViewPreference ( )

Removes the default view preference setting.

Returns
A reference to this ArtworkKit.

◆ UnsetDisplayPreference()

ArtworkKit& HPS::Publish::ArtworkKit::UnsetDisplayPreference ( )

Removes the display preference setting.

Returns
A reference to this ArtworkKit.

◆ UnsetEverything()

ArtworkKit& HPS::Publish::ArtworkKit::UnsetEverything ( )

Removes all data from the artwork.

Returns
A reference to this ArtworkKit.

◆ UnsetJavaScript()

ArtworkKit& HPS::Publish::ArtworkKit::UnsetJavaScript ( )

Removes the JavaScript setting.

Returns
A reference to this ArtworkKit.

◆ UnsetPMIColor()

ArtworkKit& HPS::Publish::ArtworkKit::UnsetPMIColor ( )

Removes the PMI color setting from the artwork.

Returns
A reference to this ArtworkKit.

◆ UnsetPMICrossHighlighting()

ArtworkKit& HPS::Publish::ArtworkKit::UnsetPMICrossHighlighting ( )

Removes the PMI cross-highlighting setting.

Returns
A reference to this ArtworkKit.

◆ UnsetPMISemanticInformation()

ArtworkKit& HPS::Publish::ArtworkKit::UnsetPMISemanticInformation ( )

Removes the PMI semantic information setting.

Returns
A reference to this ArtworkKit.

◆ UnsetView()

ArtworkKit& HPS::Publish::ArtworkKit::UnsetView ( size_t  in_index)

Removes the view at the given index from the artwork.

Parameters
in_indexIndex of the view to remove from the artwork.
Returns
A reference to this ArtworkKit.

◆ UnsetViews() [1/3]

ArtworkKit& HPS::Publish::ArtworkKit::UnsetViews ( size_t  in_count,
size_t const  in_indices[] 
)

Removes the views at the given indices from the artwork.

Parameters
in_countSize of the following array.
in_indicesIndices of the views to remove from the artwork.
Returns
A reference to this ArtworkKit.

◆ UnsetViews() [2/3]

ArtworkKit& HPS::Publish::ArtworkKit::UnsetViews ( SizeTArray const &  in_indices)

Removes the views at the given indices from the artwork.

Parameters
in_indicesIndices of the views to remove from the artwork.
Returns
A reference to this ArtworkKit.

◆ UnsetViews() [3/3]

ArtworkKit& HPS::Publish::ArtworkKit::UnsetViews ( )

Removes all views from the artwork.

Returns
A reference to this ArtworkKit.

Member Data Documentation

◆ staticType

const HPS::Type HPS::Publish::ArtworkKit::staticType = HPS::Type::PublishArtworkKit
static

The documentation for this class was generated from the following file: