#include <hps.h>
Public Member Functions | |
SubwindowControl (SegmentKey &in_seg) | |
Initializes a control tied to the segment in_seg. More... | |
SubwindowControl (SubwindowControl const &in_that) | |
Initializes a control tied to the same object as in_that. More... | |
SubwindowControl (SubwindowControl &&in_that) | |
The move constructor creates a SubwindowControl by transferring the underlying impl of the rvalue reference to this SubwindowControl thereby avoiding a copy and allocation. More... | |
SubwindowControl & | operator= (SubwindowControl &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this SubwindowControl thereby avoiding a copy. More... | |
~SubwindowControl () | |
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 |
SubwindowControl & | operator= (SubwindowControl const &in_that) |
Share the underlying smart-pointer of the SubwindowControl source. More... | |
SubwindowControl & | SetSubwindow (Rectangle const &in_window_position, Subwindow::Type in_type=Subwindow::Type::Standard) |
Defines a portion of the containing window to act as a subwindow. More... | |
SubwindowControl & | SetSubwindow (Rectangle const &in_window_position, IntRectangle const &in_window_offsets, Subwindow::Type in_type=Subwindow::Type::Standard) |
Defines a portion of the containing window to act as a subwindow. More... | |
SubwindowControl & | SetBackground (Subwindow::Background in_bg_type, char const *in_definition_name="") |
Controls the type of background to be used for subwindows originating from this segment. More... | |
SubwindowControl & | SetBorder (Subwindow::Border in_border_type) |
Controls the type of border, if any, that should be drawn for subwindows originating from this segment. More... | |
SubwindowControl & | SetRenderingAlgorithm (Subwindow::RenderingAlgorithm in_hsra) |
Determines the algorithm used to remove objects (or parts of objects) that are hidden from view by other objects. More... | |
SubwindowControl & | SetModelCompareMode (bool in_state, SegmentKey const &in_source1=SegmentKey(), SegmentKey const &in_source2=SegmentKey()) |
Sets 'model compare' rendering mode which displays a visual diff between the two source segments in this subwindow. More... | |
SubwindowControl & | SetModelCompareMode (SegmentKey const &in_source1, SegmentKey const &in_source2) |
Sets 'model compare' rendering mode which displays a visual diff between the two source segments in this subwindow. More... | |
SubwindowControl & | UnsetSubwindow () |
Removes a subwindow setting. More... | |
SubwindowControl & | UnsetBackground () |
Removes a subwindow background setting. More... | |
SubwindowControl & | UnsetBorder () |
Removes a subwindow border setting. More... | |
SubwindowControl & | UnsetRenderingAlgorithm () |
Removes a rendering algorithm setting. More... | |
SubwindowControl & | UnsetModelCompareMode () |
Removes model compare setting. More... | |
SubwindowControl & | UnsetEverything () |
Removes all settings from this object. More... | |
bool | ShowSubwindow (Rectangle &out_subwindow_position, IntRectangle &out_subwindow_offsets, Subwindow::Type &out_subwindow_type) const |
Shows the subwindow setting. More... | |
bool | ShowSubwindow (Rectangle &out_subwindow_position, Subwindow::Type &out_subwindow_type) const |
Shows the subwindow setting. More... | |
bool | ShowBackground (Subwindow::Background &out_bg_type, UTF8 &out_definition_name) const |
Shows the window background setting. More... | |
bool | ShowBorder (Subwindow::Border &out_border_type) const |
Shows the subwindow border setting. More... | |
bool | ShowRenderingAlgorithm (Subwindow::RenderingAlgorithm &out_hsra) const |
Shows the rendering algorithm setting. More... | |
bool | ShowModelCompareMode (bool &out_state, SegmentKey &out_source1, SegmentKey &out_source2) const |
Shows the model compare setting. 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::SubwindowControl |
Private Member Functions | |
SubwindowControl () | |
Private default constructor to prevent instantiation without a segment. More... | |
The HPS::SubwindowControl class is a smart pointer that is tied to a database object. The HPS::SubwindowControl allows you to manipulate the various settings associated with subwindows, such as border, background, and priority. As the main Visualize window is also an implicit subwindow, this control also allows you to set the rendering algorithm. The rendering algorithm should only have a single setting for each window or subwindow. Setting disparate rendering algorithms in multiple places in your scene can lead to unexpected results.
Default values for the various fields of HPS::SubwindowControl can be found here.
|
explicit |
Initializes a control tied to the segment in_seg.
HPS::SubwindowControl::SubwindowControl | ( | SubwindowControl const & | in_that | ) |
Initializes a control tied to the same object as in_that.
HPS::SubwindowControl::SubwindowControl | ( | SubwindowControl && | in_that | ) |
The move constructor creates a SubwindowControl by transferring the underlying impl of the rvalue reference to this SubwindowControl thereby avoiding a copy and allocation.
in_that | An rvalue reference to a SubwindowControl to take the impl from. |
HPS::SubwindowControl::~SubwindowControl | ( | ) |
Releases a reference to the database object this control is tied to.
|
private |
Private default constructor to prevent instantiation without a segment.
|
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.
|
inlinevirtualinherited |
Indicates whether this object has any values set on it.
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.
|
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 |
Reimplemented from HPS::Control.
SubwindowControl& HPS::SubwindowControl::operator= | ( | SubwindowControl && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this SubwindowControl thereby avoiding a copy.
in_that | An rvalue reference to a SubwindowControl to take the impl from. |
SubwindowControl& HPS::SubwindowControl::operator= | ( | SubwindowControl const & | in_that | ) |
Share the underlying smart-pointer of the SubwindowControl source.
in_that | The SubwindowControl source of the assignment. |
|
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.
SubwindowControl& HPS::SubwindowControl::SetBackground | ( | Subwindow::Background | in_bg_type, |
char const * | in_definition_name = "" |
||
) |
Controls the type of background to be used for subwindows originating from this segment.
This has no effect when applied to segments without a subwindow present.
in_bg_type | The type of background to be used for subwindows originating from this segment. |
in_definition_name | the name of a definition to be used in the background. Only relevant if in_bg_type is Image or Cubemap. |
SubwindowControl& HPS::SubwindowControl::SetBorder | ( | Subwindow::Border | in_border_type | ) |
Controls the type of border, if any, that should be drawn for subwindows originating from this segment.
This has no effect when applied to segments without a subwindow present.
in_border_type | The type of border, if any, that should be drawn for subwindows originating from this segment. |
SubwindowControl& HPS::SubwindowControl::SetModelCompareMode | ( | bool | in_state, |
SegmentKey const & | in_source1 = SegmentKey() , |
||
SegmentKey const & | in_source2 = SegmentKey() |
||
) |
Sets 'model compare' rendering mode which displays a visual diff between the two source segments in this subwindow.
in_state | Toggles compare mode on or off. |
in_source1 | The first source model. |
in_source2 | The second source model. |
SubwindowControl& HPS::SubwindowControl::SetModelCompareMode | ( | SegmentKey const & | in_source1, |
SegmentKey const & | in_source2 | ||
) |
Sets 'model compare' rendering mode which displays a visual diff between the two source segments in this subwindow.
in_source1 | The first source model. |
in_source2 | The second source model. |
SubwindowControl& HPS::SubwindowControl::SetRenderingAlgorithm | ( | Subwindow::RenderingAlgorithm | in_hsra | ) |
Determines the algorithm used to remove objects (or parts of objects) that are hidden from view by other objects.
This has no effect when applied to segments without a subwindow present.
in_hsra | The algorithm used to identify and remove hidden surfaces. |
SubwindowControl& HPS::SubwindowControl::SetSubwindow | ( | Rectangle const & | in_window_position, |
Subwindow::Type | in_type = Subwindow::Type::Standard |
||
) |
Defines a portion of the containing window to act as a subwindow.
Window segments have an implicit subwindow of -1 to 1 in both x and y directions that cannot be changed. Other segments can be constrained to some portion of that space. Most other subwindow-related settings are only relevant if they are applied on a segment that also contains a subwindow.
in_window_position | The portion of the containing window that should be reserved for a subwindow. The subwindow is defined in the context of a rectangle extending out a single unit in each direction from the origin. For example, a subwindow rectangle defined as Rectangle(0, 1, -1, 0) would occupy the lower right quarter of the containing window. |
in_type | The type of subwindow to create. |
SubwindowControl& HPS::SubwindowControl::SetSubwindow | ( | Rectangle const & | in_window_position, |
IntRectangle const & | in_window_offsets, | ||
Subwindow::Type | in_type = Subwindow::Type::Standard |
||
) |
Defines a portion of the containing window to act as a subwindow.
Window segments have an implicit subwindow of -1 to 1 in both x and y directions that cannot be changed. Other segments can be constrained to some portion of that space. Most other subwindow-related settings are only relevant if they are applied on a segment that also contains a subwindow.
in_window_position | The portion of the containing window that should be reserved for a subwindow. The subwindow is defined in the context of a rectangle extending out a single unit in each direction from the origin. For example, a subwindow rectangle defined as Rectangle(0, 1, -1, 0) would occupy the lower right quarter of the containing window. |
in_window_offsets | The pixel-space offsets to apply to each side of the given window position. |
in_type | The type of subwindow to create. |
bool HPS::SubwindowControl::ShowBackground | ( | Subwindow::Background & | out_bg_type, |
UTF8 & | out_definition_name | ||
) | const |
Shows the window background setting.
out_bg_type | The type of background to be used for subwindows originating from this segment. |
out_definition_name | the name of a definition to be used in the background. |
bool HPS::SubwindowControl::ShowBorder | ( | Subwindow::Border & | out_border_type | ) | const |
Shows the subwindow border setting.
out_border_type | The type of border, if any, that should be drawn for subwindows originating from this segment. |
bool HPS::SubwindowControl::ShowModelCompareMode | ( | bool & | out_state, |
SegmentKey & | out_source1, | ||
SegmentKey & | out_source2 | ||
) | const |
Shows the model compare setting.
out_state | The model compare enabled state. |
out_source1 | The first source model. |
out_source2 | The second source model. |
bool HPS::SubwindowControl::ShowRenderingAlgorithm | ( | Subwindow::RenderingAlgorithm & | out_hsra | ) | const |
Shows the rendering algorithm setting.
out_hsra | The algorithm used to identify and remove hidden surfaces. |
bool HPS::SubwindowControl::ShowSubwindow | ( | Rectangle & | out_subwindow_position, |
IntRectangle & | out_subwindow_offsets, | ||
Subwindow::Type & | out_subwindow_type | ||
) | const |
Shows the subwindow setting.
out_subwindow_position | The portion of the containing window that should be reserved for a subwindow. |
out_subwindow_offsets | The pixel-space offsets being applied to the subwindow position. |
out_subwindow_type | The type of subwindow to create. |
bool HPS::SubwindowControl::ShowSubwindow | ( | Rectangle & | out_subwindow_position, |
Subwindow::Type & | out_subwindow_type | ||
) | const |
Shows the subwindow setting.
out_subwindow_position | The portion of the containing window that should be reserved for a subwindow. |
out_subwindow_type | The type of subwindow to create. |
|
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.
Reimplemented from HPS::Control.
SubwindowControl& HPS::SubwindowControl::UnsetBackground | ( | ) |
Removes a subwindow background setting.
If the control is attached to a WindowKey this function restores the default value of this setting as specified by SubwindowKit::GetDefault().
SubwindowControl& HPS::SubwindowControl::UnsetBorder | ( | ) |
Removes a subwindow border setting.
If the control is attached to a WindowKey this function restores the default value of this setting as specified by SubwindowKit::GetDefault().
SubwindowControl& HPS::SubwindowControl::UnsetEverything | ( | ) |
Removes all settings from this object.
If the control is attached to a WindowKey this function restores the default settings of this control as specified by SubwindowKit::GetDefault().
SubwindowControl& HPS::SubwindowControl::UnsetModelCompareMode | ( | ) |
Removes model compare setting.
If the control is attached to a WindowKey this function restores the default value of this setting as specified by SubwindowKit::GetDefault().
SubwindowControl& HPS::SubwindowControl::UnsetRenderingAlgorithm | ( | ) |
Removes a rendering algorithm setting.
If the control is attached to a WindowKey this function restores the default value of this setting as specified by SubwindowKit::GetDefault().
SubwindowControl& HPS::SubwindowControl::UnsetSubwindow | ( | ) |
Removes a subwindow setting.
If the control is attached to a WindowKey this function restores the default value of this setting as specified by SubwindowKit::GetDefault().
|
static |