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::StyleControl Class Reference

The StyleControl class is a smart pointer that is tied to a database object. More...

#include <hps.h>

Inheritance diagram for HPS::StyleControl:
Collaboration diagram for HPS::StyleControl:

Public Member Functions

 StyleControl (SegmentKey &in_seg)
 Initializes a control tied to the segment in_seg. More...
 
 StyleControl (StyleControl const &in_that)
 Initializes a control tied to the same object as in_that. More...
 
 StyleControl (StyleControl &&in_that)
 The move constructor creates a StyleControl by transferring the underlying impl of the rvalue reference to this StyleControl thereby avoiding a copy and allocation. More...
 
StyleControloperator= (StyleControl &&in_that)
 The move assignment operator transfers the underlying impl of the rvalue reference to this StyleControl thereby avoiding a copy. More...
 
 ~StyleControl ()
 Releases a reference to the database object this control is tied to. More...
 
virtual HPS::Type Type () const
 This function returns the true type of the underlying object. More...
 
HPS::Type ObjectType () const
 
StyleControloperator= (StyleControl const &in_that)
 Share the underlying smart-pointer of the StyleControl source. More...
 
size_t GetCount () const
 Returns the number of styles set here. More...
 
StyleKey PushNamed (char const *in_style_name)
 Adds a named style to the top of the style stack. More...
 
StyleKey PushNamed (char const *in_style_name, ConditionalExpression const &in_conditional)
 Adds a conditional named style to the top of the style stack. More...
 
StyleKey AppendNamed (char const *in_style_name, ConditionalExpression const &in_conditional, Style::AppendMode in_mode=Style::AppendMode::Or)
 Appends a conditional expression to an existing style or conditional style. More...
 
StyleKey PushSegment (SegmentKey const &in_style_source)
 Creates a new style based on in_style_source and places it on the top of the style stack. More...
 
StyleKey PushSegment (SegmentKey const &in_style_source, ConditionalExpression const &in_conditional)
 Creates a new style based on in_style_source and places it on the top of the style stack. More...
 
StyleKey AppendSegment (SegmentKey const &in_style_source, ConditionalExpression const &in_conditional, Style::AppendMode in_mode=Style::AppendMode::Or)
 Appends a conditional expression to an existing style or conditional style. More...
 
bool Pop ()
 Removes the most recent style. More...
 
bool Pop (Style::Type &out_type, SegmentKey &out_segment_source, UTF8 &out_style_name, ConditionalExpression &out_conditional)
 Removes the most recent style and gives information about it to the user. More...
 
void Flush (SegmentKey const &in_style_source)
 Removes any styles on the associated segment which refer to the provided style source. More...
 
void Flush (SegmentKey const &in_style_source, ConditionalExpression const &in_conditional)
 Removes any styles on the associated segment which refer to the provided style source with the provided condition. More...
 
void Flush (char const *in_style_name)
 Removes any styles on the associated segment which refer to the provided style name. More...
 
void Flush (char const *in_style_name, ConditionalExpression const &in_conditional)
 Removes any styles on the associated segment which refer to the provided style name with the provided condition. More...
 
StyleKey SetNamed (char const *in_style_name)
 Sets in_style_name as the only active style, replacing any existing styles. More...
 
StyleKey SetNamed (char const *in_style_name, ConditionalExpression const &in_conditional)
 Sets in_style_name as the only active style, replacing any existing styles. More...
 
StyleKey SetSegment (SegmentKey const &in_style_source)
 Sets in_style_source as the only active style, replacing any existing styles. More...
 
StyleKey SetSegment (SegmentKey const &in_style_source, ConditionalExpression const &in_conditional)
 Sets in_style_source as the only active style, replacing any existing styles. More...
 
void Set (StyleTypeArray const &in_types, SegmentKeyArray const &in_segment_sources, UTF8Array const &in_style_names, ConditionalExpressionArray const &in_conditions)
 Sets a collection of styles, replacing any existing styles. More...
 
void Set (StyleTypeArray const &in_types, SegmentKeyArray const &in_segment_sources, UTF8Array const &in_style_names)
 Sets a collection of styles, replacing any existing styles. More...
 
void Set (size_t in_count, Style::Type const in_types[], SegmentKey const in_segment_sources[], UTF8 const in_style_names[], ConditionalExpression const in_conditions[])
 Sets a collection of styles, replacing any existing styles. More...
 
void UnsetTop ()
 Unsets the most recent style on this segment. More...
 
void UnsetAllSegment ()
 Unsets all segment styles on this segment. More...
 
void UnsetAllNamed ()
 Unsets all named styles on this segment. More...
 
void UnsetEverything ()
 Unsets all styles on this segment. More...
 
bool ShowTop (Style::Type &out_type, SegmentKey &out_segment_source, UTF8 &out_style_name, ConditionalExpression &out_conditional) const
 Shows the most recent style applied to this segment. More...
 
bool ShowTop (StyleKey &out_style) const
 Shows the most recent style applied to this segment. More...
 
bool Show (StyleTypeArray &out_types, SegmentKeyArray &out_segment_sources, UTF8Array &out_style_names, ConditionalExpressionArray &out_conditions) const
 Shows all styles on this segment. More...
 
bool Show (StyleKeyArray &out_styles) const
 Shows the all styles on this segment. More...
 
bool ShowAllSegment (SegmentKeyArray &out_segments, HPS::ConditionalExpressionArray &out_conditions) const
 Shows all segment styles on this segment. More...
 
bool ShowAllSegment (StyleKeyArray &out_styles) const
 Shows the all segment styles on this segment. More...
 
bool ShowAllNamed (UTF8Array &out_names, HPS::ConditionalExpressionArray &out_conditions) const
 Shows all named styles on this segment. More...
 
bool ShowAllNamed (StyleKeyArray &out_styles) const
 Shows the all named styles on this segment. More...
 
virtual bool Empty () const
 Indicates whether this object has any values set on it. 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::StyleControl
 

Private Member Functions

 StyleControl ()
 

Detailed Description

The StyleControl class is a smart pointer that is tied to a database object.

Controls are used for manipulating settings within the database.

Constructor & Destructor Documentation

◆ StyleControl() [1/4]

HPS::StyleControl::StyleControl ( SegmentKey in_seg)
explicit

Initializes a control tied to the segment in_seg.

◆ StyleControl() [2/4]

HPS::StyleControl::StyleControl ( StyleControl const &  in_that)

Initializes a control tied to the same object as in_that.

◆ StyleControl() [3/4]

HPS::StyleControl::StyleControl ( StyleControl &&  in_that)

The move constructor creates a StyleControl by transferring the underlying impl of the rvalue reference to this StyleControl thereby avoiding a copy and allocation.

Parameters
in_thatAn rvalue reference to a StyleControl to take the impl from.

◆ ~StyleControl()

HPS::StyleControl::~StyleControl ( )

Releases a reference to the database object this control is tied to.

◆ StyleControl() [4/4]

HPS::StyleControl::StyleControl ( )
private

Member Function Documentation

◆ AppendNamed()

StyleKey HPS::StyleControl::AppendNamed ( char const *  in_style_name,
ConditionalExpression const &  in_conditional,
Style::AppendMode  in_mode = Style::AppendMode::Or 
)

Appends a conditional expression to an existing style or conditional style.

If the style does not currently exist, a new conditional style is pushed. Conditional styles are only applied if their condition(s) are satisfied.

Parameters
in_style_nameThe name of the named style which should be defined in an accessible portfolio.
in_conditionalA conditional expression that must be satisfied in order for the style to be applied.
in_modeThe behavior of the conditional expression if another conditional style is currently applied with the same style.
Returns
a StyleKey that can be used to interact with the style.

◆ AppendSegment()

StyleKey HPS::StyleControl::AppendSegment ( SegmentKey const &  in_style_source,
ConditionalExpression const &  in_conditional,
Style::AppendMode  in_mode = Style::AppendMode::Or 
)

Appends a conditional expression to an existing style or conditional style.

If the style does not currently exist, a new conditional style is pushed. Conditional styles are only applied if their condition(s) are satisfied.

Parameters
in_style_sourceThe segment to use as the source for the attributes that should be styled.
in_conditionalA conditional expression that must be satisfied in order for the style to be applied.
in_modeThe behavior of the conditional expression if another conditional style is currently applied with the same style.
Returns
a StyleKey that can be used to interact with the style.

◆ 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()

virtual bool HPS::Object::Empty ( ) const
inlinevirtualinherited

Indicates whether this object has any values set on it.

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

Reimplemented in HPS::STL::ImportResultsKit, HPS::STL::ImportOptionsKit, HPS::OBJ::ImportResultsKit, HPS::OBJ::ImportOptionsKit, HPS::Hardcopy::File::ExportOptionsKit, HPS::Stream::ExportOptionsKit, HPS::Stream::ImportResultsKit, HPS::Stream::ImportOptionsKit, HPS::PointCloud::ImportOptionsKit, HPS::PointCloud::ImportResultsKit, HPS::UpdateOptionsKit, HPS::HighlightSearchOptionsKit, HPS::HighlightOptionsKit, HPS::SelectionOptionsKit, HPS::SearchOptionsKit, HPS::CutGeometryGatheringOptionsKit, HPS::ShapeKit, HPS::ShaderKit, HPS::Shader::ImportOptionsKit, HPS::ImageKit, HPS::Image::ImportOptionsKit, HPS::Image::ExportOptionsKit, HPS::TextureOptionsKit, HPS::LinePatternKit, HPS::LinePatternParallelKit, HPS::LinePatternOptionsKit, HPS::GlyphKit, HPS::ApplicationWindowOptionsKit, HPS::OffScreenWindowOptionsKit, HPS::StandAloneWindowOptionsKit, HPS::GridKit, HPS::PolygonKit, HPS::MeshKit, HPS::ShellKit, HPS::ShellRelationResultsKit, HPS::ShellRelationOptionsKit, HPS::ShellOptimizationOptionsKit, HPS::TextKit, HPS::EllipticalArcKit, HPS::EllipseKit, HPS::TrimKit, HPS::NURBSSurfaceKit, HPS::NURBSCurveKit, HPS::SpotlightKit, HPS::InfiniteLineKit, HPS::CuttingSectionKit, HPS::CircularWedgeKit, HPS::CircularArcKit, HPS::CircleKit, HPS::SphereKit, HPS::CylinderKit, HPS::DistantLightKit, HPS::MarkerKit, HPS::LineKit, HPS::AttributeLockKit, HPS::FontInfoState, HPS::WindowInfoKit, HPS::DebuggingKit, HPS::SubwindowKit, HPS::ContourLineKit, HPS::VisualEffectsKit, HPS::TransformMaskKit, HPS::PostProcessEffectsKit, HPS::DrawingAttributeKit, HPS::HiddenLineAttributeKit, HPS::PerformanceKit, HPS::NURBSSurfaceAttributeKit, HPS::MaterialKit, HPS::MaterialMappingKit, HPS::MatrixKit, HPS::CurveAttributeKit, HPS::EdgeAttributeKit, HPS::LineAttributeKit, HPS::TextAttributeKit, HPS::CuttingSectionAttributeKit, HPS::CylinderAttributeKit, HPS::LightingAttributeKit, HPS::SphereAttributeKit, HPS::MarkerAttributeKit, HPS::CullingKit, HPS::ColorInterpolationKit, HPS::TransparencyKit, HPS::SelectabilityKit, HPS::CameraKit, HPS::VisibilityKit, HPS::BoundingKit, HPS::SegmentOptimizationOptionsKit, HPS::Publish::ExportOptionsKit, HPS::Publish::TextFieldKit, HPS::Publish::SignatureFieldKit, HPS::Publish::DropDownListKit, HPS::Exchange::TessellationOptionsKit, HPS::Publish::ListBoxKit, HPS::Exchange::ExportSTEPOptionsKit, HPS::Exchange::ExportParasolidOptionsKit, HPS::Publish::RadioButtonKit, HPS::Exchange::ExportIGESOptionsKit, HPS::Exchange::ExportXMLOptionsKit, HPS::Publish::CheckBoxKit, HPS::Exchange::ExportU3DOptionsKit, HPS::Exchange::ExportSTLOptionsKit, HPS::Publish::ButtonKit, HPS::Exchange::ExportPRCOptionsKit, HPS::Publish::LinkKit, HPS::Exchange::ExportJTOptionsKit, HPS::Publish::SlideTableKit, HPS::Exchange::ExportACISOptionsKit, HPS::Publish::TableKit, HPS::Exchange::Export3MFOptionsKit, HPS::Publish::ImageKit, HPS::Publish::TextKit, HPS::Exchange::ModelFileImportOptionsKit, HPS::Publish::ViewKit, HPS::Exchange::TranslationOptionsKit, HPS::Publish::ArtworkKit, HPS::Publish::AnnotationKit, HPS::ComponentPath, HPS::Exchange::ImportOptionsKit, HPS::Parasolid::ExportOptionsKit, HPS::Exchange::NURBSConversionOptionsKit, HPS::Parasolid::LineTessellationKit, HPS::Exchange::Configuration, HPS::Publish::PageKit, HPS::Parasolid::FacetTessellationKit, HPS::Publish::DocumentKit, HPS::Parasolid::ImportOptionsKit, HPS::DWG::ImportOptionsKit, HPS::OOC::ImportOptionsKit, HPS::Sketchup::ImportOptionsKit, and HPS::Sketchup::ImportResultsKit.

◆ Flush() [1/4]

void HPS::StyleControl::Flush ( SegmentKey const &  in_style_source)

Removes any styles on the associated segment which refer to the provided style source.

The styles will be removed regardless if there is a conditional expression associated with the style or not.

Parameters
in_style_sourceThe style source used to identify which styles to remove.

◆ Flush() [2/4]

void HPS::StyleControl::Flush ( SegmentKey const &  in_style_source,
ConditionalExpression const &  in_conditional 
)

Removes any styles on the associated segment which refer to the provided style source with the provided condition.

If a style is found which references the style source and has an associated conditional expression which contains the provided conditional expression, the provided conditional expression will be removed from the conditional expression associated with the style. If removing the provided conditional expression from the style results in the complete removal of the conditional expression for the style, the style itself will be completely removed.

Parameters
in_style_sourceThe style source used to identify which styles to remove or modify.
in_conditionalThe conditional expression to remove from styles which refer to the provided style source.

◆ Flush() [3/4]

void HPS::StyleControl::Flush ( char const *  in_style_name)

Removes any styles on the associated segment which refer to the provided style name.

The styles will be removed regardless if there is a conditional expression associated with the style or not.

Parameters
in_style_nameThe style name used to identify which styles to remove.

◆ Flush() [4/4]

void HPS::StyleControl::Flush ( char const *  in_style_name,
ConditionalExpression const &  in_conditional 
)

Removes any styles on the associated segment which refer to the provided style name with the provided condition.

If a style is found which references the style name and has an associated conditional expression which contains the provided conditional expression, the provided conditional expression will be removed from the conditional expression associated with the style. If removing the provided conditional expression from the style results in the complete removal of the conditional expression for the style, the style itself will be completely removed.

Parameters
in_style_nameThe style name used to identify which styles to remove or modify.
in_conditionalThe conditional expression to remove from styles which refer to the provided style name.

◆ 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.

◆ GetCount()

size_t HPS::StyleControl::GetCount ( ) const

Returns the number of styles set here.

◆ 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::StyleControl::ObjectType ( ) const
inlinevirtual

Reimplemented from HPS::Control.

◆ operator=() [1/2]

StyleControl& HPS::StyleControl::operator= ( StyleControl &&  in_that)

The move assignment operator transfers the underlying impl of the rvalue reference to this StyleControl thereby avoiding a copy.

Parameters
in_thatAn rvalue reference to a StyleControl to take the impl from.
Returns
A reference to this StyleControl.

◆ operator=() [2/2]

StyleControl& HPS::StyleControl::operator= ( StyleControl const &  in_that)

Share the underlying smart-pointer of the StyleControl source.

Parameters
in_thatThe StyleControl source of the assignment.
Returns
A reference to this StyleControl.

◆ Pop() [1/2]

bool HPS::StyleControl::Pop ( )

Removes the most recent style.

Returns
true if a style was present, false otherwise.

◆ Pop() [2/2]

bool HPS::StyleControl::Pop ( Style::Type out_type,
SegmentKey out_segment_source,
UTF8 out_style_name,
ConditionalExpression out_conditional 
)

Removes the most recent style and gives information about it to the user.

Parameters
out_typeIndicates the type of the style.
out_segment_sourceIf out_type was Segment, this value contains the source segment for the style.
out_style_nameIf out_type was Named, this value contains the name of the style (defined in a portfolio).
out_conditionalThe conditions, if any, set on the style when it was applied.
Returns
true if a style was present, false otherwise.

◆ PushNamed() [1/2]

StyleKey HPS::StyleControl::PushNamed ( char const *  in_style_name)

Adds a named style to the top of the style stack.

Existing styles are unmodified but styles on top take precedence if there are duplicate settings.

◆ PushNamed() [2/2]

StyleKey HPS::StyleControl::PushNamed ( char const *  in_style_name,
ConditionalExpression const &  in_conditional 
)

Adds a conditional named style to the top of the style stack.

Existing styles are unmodified but styles on top take precedence if there are duplicate settings. Conditional styles are only applied if their condition(s) are satisfied.

Parameters
in_style_nameThe name of the named style which should be defined in an accessible portfolio.
in_conditionalA conditional expression that must be satisfied in order for the style to be applied.
Returns
a StyleKey that can be used to interact with the style.

◆ PushSegment() [1/2]

StyleKey HPS::StyleControl::PushSegment ( SegmentKey const &  in_style_source)

Creates a new style based on in_style_source and places it on the top of the style stack.

Existing styles are unmodified but styles on top take precedence if there are duplicate settings.

Parameters
in_style_sourceThe segment to use as the source for the attributes that should be styled.
Returns
a StyleKey that can be used to interact with the style.

◆ PushSegment() [2/2]

StyleKey HPS::StyleControl::PushSegment ( SegmentKey const &  in_style_source,
ConditionalExpression const &  in_conditional 
)

Creates a new style based on in_style_source and places it on the top of the style stack.

Existing styles are unmodified but styles on top take precedence if there are duplicate settings.

Parameters
in_style_sourceThe segment to use as the source for the attributes that should be styled.
in_conditionalA conditional expression that must be satisfied in order for the style to be applied.
Returns
a StyleKey that can be used to interact with the style.

◆ Reset()

◆ Set() [1/3]

void HPS::StyleControl::Set ( StyleTypeArray const &  in_types,
SegmentKeyArray const &  in_segment_sources,
UTF8Array const &  in_style_names,
ConditionalExpressionArray const &  in_conditions 
)

Sets a collection of styles, replacing any existing styles.

Parameters
in_typesIndicates the type of each style.
in_segment_sourcesFor each entry, if in_type was Segment, this value must contain the source segment for the style.
in_style_namesFor each entry, if in_type was Named, this value must contain the name of the style (defined in a portfolio).
in_conditionsThe conditions to set on each style.

◆ Set() [2/3]

void HPS::StyleControl::Set ( StyleTypeArray const &  in_types,
SegmentKeyArray const &  in_segment_sources,
UTF8Array const &  in_style_names 
)

Sets a collection of styles, replacing any existing styles.

Parameters
in_typesIndicates the type of each style.
in_segment_sourcesFor each entry, if in_type was Segment, this value must contain the source segment for the style.
in_style_namesFor each entry, if in_type was Named, this value must contain the name of the style (defined in a portfolio).

◆ Set() [3/3]

void HPS::StyleControl::Set ( size_t  in_count,
Style::Type const  in_types[],
SegmentKey const  in_segment_sources[],
UTF8 const  in_style_names[],
ConditionalExpression const  in_conditions[] 
)

Sets a collection of styles, replacing any existing styles.

Parameters
in_countThe length of all arrays
in_typesIndicates the type of each style.
in_segment_sourcesFor each entry, if in_type was Segment, this value must contain the source segment for the style.
in_style_namesFor each entry, if in_type was Named, this value must contain the name of the style (defined in a portfolio).
in_conditionsThe conditions, if any, to set on each style. Passing a null pointer indicates no conditions are requested.

◆ SetNamed() [1/2]

StyleKey HPS::StyleControl::SetNamed ( char const *  in_style_name)

Sets in_style_name as the only active style, replacing any existing styles.

Parameters
in_style_nameThe name of the style to apply. If the name does not exist in the active portfolio, no style is applied.

◆ SetNamed() [2/2]

StyleKey HPS::StyleControl::SetNamed ( char const *  in_style_name,
ConditionalExpression const &  in_conditional 
)

Sets in_style_name as the only active style, replacing any existing styles.

Parameters
in_style_nameThe name of the style to apply. If the name does not exist in the active portfolio, no style is applied.
in_conditionalA condition or conditions that must be met for a style to be activated.

◆ SetSegment() [1/2]

StyleKey HPS::StyleControl::SetSegment ( SegmentKey const &  in_style_source)

Sets in_style_source as the only active style, replacing any existing styles.

Parameters
in_style_sourceA segment containing attributes that should be styled.

◆ SetSegment() [2/2]

StyleKey HPS::StyleControl::SetSegment ( SegmentKey const &  in_style_source,
ConditionalExpression const &  in_conditional 
)

Sets in_style_source as the only active style, replacing any existing styles.

Parameters
in_style_sourceA segment containing attributes that should be styled.
in_conditionalA condition or conditions that must be met for a style to be activated.

◆ Show() [1/2]

bool HPS::StyleControl::Show ( StyleTypeArray out_types,
SegmentKeyArray out_segment_sources,
UTF8Array out_style_names,
ConditionalExpressionArray out_conditions 
) const

Shows all styles on this segment.

Parameters
out_typesIndicates the type of each style.
out_segment_sourcesFor each entry, if out_type was Style::Type::Segment, this value contains the source segment for the style.
out_style_namesFor each entry, if out_type was Style::Type::Named, this value contains the name of the style (defined in a portfolio).
out_conditionsThe conditions, if any, set on each style when it was applied.
Returns
true if any style was present, false otherwise.

◆ Show() [2/2]

bool HPS::StyleControl::Show ( StyleKeyArray out_styles) const

Shows the all styles on this segment.

Parameters
out_stylesThe StyleKey for each style on this segment.
Returns
true if any style was present, false otherwise.

◆ ShowAllNamed() [1/2]

bool HPS::StyleControl::ShowAllNamed ( UTF8Array out_names,
HPS::ConditionalExpressionArray out_conditions 
) const

Shows all named styles on this segment.

Parameters
out_namesNames of all named styles set on this segment.
out_conditionsThe conditions, if any, set on each style when it was applied.
Returns
true if any style of the correct type was present, false otherwise.

◆ ShowAllNamed() [2/2]

bool HPS::StyleControl::ShowAllNamed ( StyleKeyArray out_styles) const

Shows the all named styles on this segment.

Parameters
out_stylesThe StyleKey for each named style on this segment.
Returns
true if any named style was present, false otherwise.

◆ ShowAllSegment() [1/2]

bool HPS::StyleControl::ShowAllSegment ( SegmentKeyArray out_segments,
HPS::ConditionalExpressionArray out_conditions 
) const

Shows all segment styles on this segment.

Parameters
out_segmentsKeys to all segments styled onto this segment.
out_conditionsThe conditions, if any, set on each style when it was applied.
Returns
true if any style of the correct type was present, false otherwise.

◆ ShowAllSegment() [2/2]

bool HPS::StyleControl::ShowAllSegment ( StyleKeyArray out_styles) const

Shows the all segment styles on this segment.

Parameters
out_stylesThe StyleKey for each segment style on this segment.
Returns
true if any segment style was present, false otherwise.

◆ ShowTop() [1/2]

bool HPS::StyleControl::ShowTop ( Style::Type out_type,
SegmentKey out_segment_source,
UTF8 out_style_name,
ConditionalExpression out_conditional 
) const

Shows the most recent style applied to this segment.

Parameters
out_typeIndicates the type of the style.
out_segment_sourceIf out_type was Style::Type::Segment, this value contains the source segment for the style.
out_style_nameIf out_type was Style::Type::Named, this value contains the name of the style (defined in a portfolio).
out_conditionalThe conditions, if any, set on the style when it was applied.
Returns
true if a style was present, false otherwise.

◆ ShowTop() [2/2]

bool HPS::StyleControl::ShowTop ( StyleKey out_style) const

Shows the most recent style applied to this segment.

Parameters
out_styleThe StyleKey for the most recent style applied to this segment.
Returns
true if a style was present, false otherwise.

◆ Type()

virtual HPS::Type HPS::StyleControl::Type ( ) const
inlinevirtual

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.

Returns
The true type of the object in question.

Reimplemented from HPS::Control.

◆ UnsetAllNamed()

void HPS::StyleControl::UnsetAllNamed ( )

Unsets all named styles on this segment.

◆ UnsetAllSegment()

void HPS::StyleControl::UnsetAllSegment ( )

Unsets all segment styles on this segment.

◆ UnsetEverything()

void HPS::StyleControl::UnsetEverything ( )

Unsets all styles on this segment.

◆ UnsetTop()

void HPS::StyleControl::UnsetTop ( )

Unsets the most recent style on this segment.

Member Data Documentation

◆ staticType

const HPS::Type HPS::StyleControl::staticType = HPS::Type::StyleControl
static

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