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

The View class is one of the four core display classes used in a Visualize application. More...

#include <sprk.h>

Inheritance diagram for HPS::View:
Collaboration diagram for HPS::View:

Public Member Functions

 View ()
 
 View (View const &that)
 
 View (SprocketControl const &in_ctrl)
 
 ~View ()
 
HPS::Type ObjectType () const
 
void Delete ()
 Deletes this View. More...
 
Viewoperator= (View const &in_that)
 
void Assign (View const &in_that)
 
bool Equals (View const &in_that) const
 
bool operator!= (View const &in_that) const
 
bool operator== (View const &in_that) const
 
UTF8 GetName () const
 Get the name used when creating this View. More...
 
HPS::ViewComputeFitWorldCamera (HPS::CameraKit &out_camera)
 This method computes a camera to fit the extents of the scene. More...
 
HPS::ViewComputeFitWorldCamera (SegmentKey const &in_segment, HPS::CameraKit &out_camera)
 This method computes a camera to fit the extents of a segment. More...
 
HPS::ViewComputeFitWorldCamera (BoundingKit const &in_bounding, HPS::CameraKit &out_camera)
 This method computes a camera to fit a bounding. More...
 
HPS::ViewComputeFitWorldCamera (SegmentKey const &in_segment, MatrixKit const &in_transform, HPS::CameraKit &out_camera)
 This method computes a camera to fit the extents of a segment. More...
 
HPS::ViewComputeFitWorldCamera (BoundingKit const &in_bounding, MatrixKit const &in_transform, HPS::CameraKit &out_camera)
 This method computes a camera to fit a bounding. More...
 
HPS::ViewFitWorld ()
 This method automatically adjusts the camera to fit the extents of the scene. More...
 
HPS::ViewFitWorld (SegmentKey const &in_segment)
 This method automatically adjusts the camera to fit the extents of a segment. More...
 
HPS::ViewFitWorld (BoundingKit const &in_bounding)
 This method automatically adjusts the camera to fit a bounding. More...
 
HPS::ViewFitWorld (SegmentKey const &in_segment, MatrixKit const &in_transform)
 This method automatically adjusts the camera to fit the extents of a segment. More...
 
HPS::ViewFitWorld (BoundingKit const &in_bounding, MatrixKit const &in_transform)
 This method automatically adjusts the camera to fit a bounding. More...
 
void AttachModel (Model const &in_model)
 Attaches a Model to this View. More...
 
void DetachModel ()
 Detaches the Model from this View. More...
 
Model GetAttachedModel () const
 Returns the Model that is attached to this View. More...
 
IncludeKey GetAttachedModelIncludeLink () const
 Returns the IncludeKey associated with this View. More...
 
void SetRenderingMode (Rendering::Mode in_mode)
 Sets the rendering mode for this View. More...
 
Rendering::Mode GetRenderingMode () const
 Gets the rendering mode for this View. More...
 
OperatorPtrArray GetOperators () const
 Gets an array of all operators currently active on this View. More...
 
void SetOperators (OperatorPtrArray &in_operators)
 Makes a set of operators active on this View. More...
 
void SetOperators (size_t in_count, OperatorPtr in_operators [])
 Makes an array of operators active on this View. More...
 
void SetOperator (OperatorPtr const &in_operator)
 Makes an operator active on this View. More...
 
void SetOperator (Operator *in_operator)
 Makes an operator active on this View. More...
 
OperatorControl GetOperatorControl ()
 Gets the OperatorControl that is associated with this View. More...
 
OperatorControl const GetOperatorControl () const
 
NavigationCubeControl GetNavigationCubeControl ()
 Gets the NavigationCubeControl that is associated with this View. More...
 
NavigationCubeControl const GetNavigationCubeControl () const
 
AxisTriadControl GetAxisTriadControl ()
 Gets the AxisTriadControl that is associated with this View. More...
 
AxisTriadControl const GetAxisTriadControl () const
 
SegmentKey GetSegmentKey ()
 Each of the four display hierarchy objects (HPS::Canvas, HPS::Layout, HPS::View, HPS::Model) are backed by a HPS::SegmentKey. More...
 
SegmentKey const GetSegmentKey () const
 
SegmentKey GetModelOverrideSegmentKey ()
 Returns the model override segment. More...
 
SegmentKey const GetModelOverrideSegmentKey () const
 
PortfolioKey const GetPortfolioKey () const
 
PortfolioKey GetPortfolioKey ()
 Returns the HPS::PortfolioKey associated with this View. More...
 
void SetSimpleShadow (bool in_state, float in_percent_offset=5.0f)
 Turns simple shadows on or off, automatically calculating shadow plane and light direction. More...
 
bool GetSimpleShadow ()
 Returns the status of the simple shadows. More...
 
void SetSimpleReflection (bool in_state, float in_percent_offset=5.0f)
 Turns simple reflection on or off, automatically calculating reflection plane and light direction. More...
 
bool GetSimpleReflection ()
 Returns the status of the simple reflection. More...
 
void Update () const
 Redraws the View and all Layouts it appears in, including all of its child components. More...
 
UpdateNotifier UpdateWithNotifier () const
 Redraws the View and all Layouts it appears in, including all of its child components using the default options, and also returns a notifier to facilitate tracking the update progress. More...
 
void Update (HPS::Window::UpdateType in_type, HPS::Time in_time_limit=-1.0) const
 Redraws the View and all Layouts it appears in, including all of its child components using the specified parameters. More...
 
UpdateNotifier UpdateWithNotifier (HPS::Window::UpdateType in_type, HPS::Time in_time_limit=-1.0) const
 Redraws the View and all Layouts it appears in, including all of its child components using the specified, and also returns a notifier to facilitate tracking the update progress. More...
 
void SmoothTransition (HPS::CameraKit const &in_camera_kit, HPS::Time in_duration=0.5)
 Smoothly moves the camera from the current position to the one specified by the user. More...
 
KeyArray const GetNavigationKeys ()
 Gets an array of Keys associated with the Axis Triad and Navigation Cube for this View. More...
 
LayoutArray GetOwningLayouts ()
 Returns an array containing the Layouts this View is included in. More...
 
LayoutArray const GetOwningLayouts () const
 
virtual HPS::Type Type () const
 This function returns the true type of the underlying object. 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

static UTF8 GetHideStyleName ()
 
static UTF8 GetShowStyleName ()
 
template<typename T >
static intptr_t ClassID ()
 Unique identifier for this class. More...
 

Static Public Attributes

static const HPS::Type staticType = HPS::Type::View
 

Detailed Description

The View class is one of the four core display classes used in a Visualize application.

It is meant to be used as part of a display hierarchy along with the Canvas, Layout, and Model objects. The View has a parent Layout and can contain a single Model. The View is meant to represent one particular camera's view of the scene. Like the other three core objects, the View is backed by a HPS::SegmentKey.

Constructor & Destructor Documentation

◆ View() [1/3]

HPS::View::View ( )

◆ View() [2/3]

HPS::View::View ( View const &  that)

◆ View() [3/3]

HPS::View::View ( SprocketControl const &  in_ctrl)
explicit

◆ ~View()

HPS::View::~View ( )

Member Function Documentation

◆ Assign()

void HPS::View::Assign ( View const &  in_that)

◆ AttachModel()

void HPS::View::AttachModel ( Model const &  in_model)

Attaches a Model to this View.

Only a single Model can be attached to a View at one time. If you attach a Model to a View which already has an attached Model, the new Model will replace the old one.

Parameters
in_modelthe Model to attach to this View

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

◆ ComputeFitWorldCamera() [1/5]

HPS::View& HPS::View::ComputeFitWorldCamera ( HPS::CameraKit out_camera)

This method computes a camera to fit the extents of the scene.

Parameters
out_cameraThe camera computed by the fit world routine.

◆ ComputeFitWorldCamera() [2/5]

HPS::View& HPS::View::ComputeFitWorldCamera ( SegmentKey const &  in_segment,
HPS::CameraKit out_camera 
)

This method computes a camera to fit the extents of a segment.

Parameters
in_segmentThe segment used to calculate the new camera.
out_cameraThe camera computed by the fit world routine.

◆ ComputeFitWorldCamera() [3/5]

HPS::View& HPS::View::ComputeFitWorldCamera ( BoundingKit const &  in_bounding,
HPS::CameraKit out_camera 
)

This method computes a camera to fit a bounding.

Parameters
in_boundingThe bounding used to calculate the new camera.
out_cameraThe camera computed by the fit world routine.

◆ ComputeFitWorldCamera() [4/5]

HPS::View& HPS::View::ComputeFitWorldCamera ( SegmentKey const &  in_segment,
MatrixKit const &  in_transform,
HPS::CameraKit out_camera 
)

This method computes a camera to fit the extents of a segment.

Parameters
in_segmentThe segment used to calculate the new camera.
in_transformAn optional transform to apply to the segment bounding used to compute the camera. This can be used to ensure that the camera is looking at the geometry in the correct position once any modelling matrices are applied.
out_cameraThe camera computed by the fit world routine.

◆ ComputeFitWorldCamera() [5/5]

HPS::View& HPS::View::ComputeFitWorldCamera ( BoundingKit const &  in_bounding,
MatrixKit const &  in_transform,
HPS::CameraKit out_camera 
)

This method computes a camera to fit a bounding.

Parameters
in_boundingThe bounding used to calculate the new camera.
in_transformAn optional transform to apply to the bounding used to compute the camera. This can be used to ensure that the camera is looking at the geometry in the correct position once any modelling matrices are applied.
out_cameraThe camera computed by the fit world routine.

◆ Delete()

void HPS::View::Delete ( )

Deletes this View.

If the View has a Model attached, the Model will not be destroyed.

◆ DetachModel()

void HPS::View::DetachModel ( )

Detaches the Model from this View.

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

◆ Equals()

bool HPS::View::Equals ( View const &  in_that) const

◆ FitWorld() [1/5]

HPS::View& HPS::View::FitWorld ( )

This method automatically adjusts the camera to fit the extents of the scene.

◆ FitWorld() [2/5]

HPS::View& HPS::View::FitWorld ( SegmentKey const &  in_segment)

This method automatically adjusts the camera to fit the extents of a segment.

Note that this method does not take into account any transformations found between in_segment and the View segment. If there might be transforms between in_segment and the View segment, you can use the version of FitWorld which does not require a parameter, or the version of FitWorld which takes both a SegmentKey and a MatrixKit.

Parameters
in_segmentThe segment used to calculate the new camera.

◆ FitWorld() [3/5]

HPS::View& HPS::View::FitWorld ( BoundingKit const &  in_bounding)

This method automatically adjusts the camera to fit a bounding.

Parameters
in_boundingThe bounding used to calculate the new camera.

◆ FitWorld() [4/5]

HPS::View& HPS::View::FitWorld ( SegmentKey const &  in_segment,
MatrixKit const &  in_transform 
)

This method automatically adjusts the camera to fit the extents of a segment.

In the general case, in_transform should be the product of all the MatrixKits found between the View segment and in_segment.

Parameters
in_segmentThe segment used to calculate the new camera.
in_transformAn optional transform to apply to the segment bounding used to compute the camera. This can be used to ensure that the camera is looking at the geometry in the correct position once any modelling matrices are applied.

◆ FitWorld() [5/5]

HPS::View& HPS::View::FitWorld ( BoundingKit const &  in_bounding,
MatrixKit const &  in_transform 
)

This method automatically adjusts the camera to fit a bounding.

Parameters
in_boundingThe bounding used to calculate the new camera.
in_transformAn optional transform to apply to the bounding used to compute the camera. This can be used to ensure that the camera is looking at the geometry in the correct position once any modelling matrices are applied.

◆ GetAttachedModel()

Model HPS::View::GetAttachedModel ( ) const

Returns the Model that is attached to this View.

◆ GetAttachedModelIncludeLink()

IncludeKey HPS::View::GetAttachedModelIncludeLink ( ) const

Returns the IncludeKey associated with this View.

The include key links the View with the Model.

◆ GetAxisTriadControl() [1/2]

AxisTriadControl HPS::View::GetAxisTriadControl ( )

Gets the AxisTriadControl that is associated with this View.

◆ GetAxisTriadControl() [2/2]

AxisTriadControl const HPS::View::GetAxisTriadControl ( ) const

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

◆ GetHideStyleName()

static UTF8 HPS::View::GetHideStyleName ( )
static

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

◆ GetModelOverrideSegmentKey() [1/2]

SegmentKey HPS::View::GetModelOverrideSegmentKey ( )

Returns the model override segment.

This segment can be used to change attributes affecting the whole model, without affecting the static tree set at the model level.

◆ GetModelOverrideSegmentKey() [2/2]

SegmentKey const HPS::View::GetModelOverrideSegmentKey ( ) const

◆ GetName()

UTF8 HPS::View::GetName ( ) const

Get the name used when creating this View.

◆ GetNavigationCubeControl() [1/2]

NavigationCubeControl HPS::View::GetNavigationCubeControl ( )

Gets the NavigationCubeControl that is associated with this View.

◆ GetNavigationCubeControl() [2/2]

NavigationCubeControl const HPS::View::GetNavigationCubeControl ( ) const

◆ GetNavigationKeys()

KeyArray const HPS::View::GetNavigationKeys ( )

Gets an array of Keys associated with the Axis Triad and Navigation Cube for this View.

◆ GetOperatorControl() [1/2]

OperatorControl HPS::View::GetOperatorControl ( )

Gets the OperatorControl that is associated with this View.

◆ GetOperatorControl() [2/2]

OperatorControl const HPS::View::GetOperatorControl ( ) const

◆ GetOperators()

OperatorPtrArray HPS::View::GetOperators ( ) const

Gets an array of all operators currently active on this View.

◆ GetOwningLayouts() [1/2]

LayoutArray HPS::View::GetOwningLayouts ( )

Returns an array containing the Layouts this View is included in.

◆ GetOwningLayouts() [2/2]

LayoutArray const HPS::View::GetOwningLayouts ( ) const

◆ GetPortfolioKey() [1/2]

PortfolioKey const HPS::View::GetPortfolioKey ( ) const

◆ GetPortfolioKey() [2/2]

PortfolioKey HPS::View::GetPortfolioKey ( )

Returns the HPS::PortfolioKey associated with this View.

◆ GetRenderingMode()

Rendering::Mode HPS::View::GetRenderingMode ( ) const

Gets the rendering mode for this View.

A rendering modes enable things like "hidden line" rendering or a particular lighting interpolation algorithm.

◆ GetSegmentKey() [1/2]

SegmentKey HPS::View::GetSegmentKey ( )

Each of the four display hierarchy objects (HPS::Canvas, HPS::Layout, HPS::View, HPS::Model) are backed by a HPS::SegmentKey.

This function returns the HPS::SegmentKey that is associated with this View.

◆ GetSegmentKey() [2/2]

SegmentKey const HPS::View::GetSegmentKey ( ) const

◆ GetShowStyleName()

static UTF8 HPS::View::GetShowStyleName ( )
static

◆ GetSimpleReflection()

bool HPS::View::GetSimpleReflection ( )

Returns the status of the simple reflection.

◆ GetSimpleShadow()

bool HPS::View::GetSimpleShadow ( )

Returns the status of the simple shadows.

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

Reimplemented from HPS::Object.

Here is the call graph for this function:

◆ operator!=()

bool HPS::View::operator!= ( View const &  in_that) const

◆ operator=()

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

◆ operator==()

bool HPS::View::operator== ( View const &  in_that) const

◆ Reset()

◆ SetOperator() [1/2]

void HPS::View::SetOperator ( OperatorPtr const &  in_operator)

Makes an operator active on this View.

Assumes control of the memory of the operator.

Parameters
in_operatorthe operator to be made active on this View.

◆ SetOperator() [2/2]

void HPS::View::SetOperator ( Operator in_operator)

Makes an operator active on this View.

Assumes control of the memory of the operator.

Deprecated:
It is recommended to use overloads which consume OperatorPtr as the object lifetime is simpler to reason about.
Parameters
in_operatorthe operator to be made active on this View.

◆ SetOperators() [1/2]

void HPS::View::SetOperators ( OperatorPtrArray in_operators)

Makes a set of operators active on this View.

Parameters
in_operatorsthe set of operators to be made active on this View

◆ SetOperators() [2/2]

void HPS::View::SetOperators ( size_t  in_count,
OperatorPtr  in_operators[] 
)

Makes an array of operators active on this View.

Parameters
in_countthe number of operators in the in_operators array
in_operatorsthe array of operators to be made active on this View

◆ SetRenderingMode()

void HPS::View::SetRenderingMode ( Rendering::Mode  in_mode)

Sets the rendering mode for this View.

A rendering modes enable things like "hidden line" rendering or a particular lighting interpolation algorithm.

See also
Programming Guide section 1.1.3.

◆ SetSimpleReflection()

void HPS::View::SetSimpleReflection ( bool  in_state,
float  in_percent_offset = 5.0f 
)

Turns simple reflection on or off, automatically calculating reflection plane and light direction.

Parameters
in_statecontrols whether simple reflection is on or off
in_percent_offsetdistance to add between the model's bounding box and the position of the reflection plane If not specified, it is set to 5%.

◆ SetSimpleShadow()

void HPS::View::SetSimpleShadow ( bool  in_state,
float  in_percent_offset = 5.0f 
)

Turns simple shadows on or off, automatically calculating shadow plane and light direction.

Parameters
in_statecontrols whether simple shadows are on or off
in_percent_offsetdistance to add between the model's bounding box and the position of the shadow plane If not specified, it is set to 5%.

◆ SmoothTransition()

void HPS::View::SmoothTransition ( HPS::CameraKit const &  in_camera_kit,
HPS::Time  in_duration = 0.5 
)

Smoothly moves the camera from the current position to the one specified by the user.

Parameters
in_camera_kita camera kit describing the destination camera
in_durationthe duration of the animation, specified in seconds. Defaults to 0.5 seconds.

◆ Type()

◆ Update() [1/2]

void HPS::View::Update ( ) const

Redraws the View and all Layouts it appears in, including all of its child components.

◆ Update() [2/2]

void HPS::View::Update ( HPS::Window::UpdateType  in_type,
HPS::Time  in_time_limit = -1.0 
) const

Redraws the View and all Layouts it appears in, including all of its child components using the specified parameters.

Parameters
in_typeone of the enum values specified by HPS::Window::UpdateType
in_time_limitthe maximum amount of time, in seconds, to spend updating.

◆ UpdateWithNotifier() [1/2]

UpdateNotifier HPS::View::UpdateWithNotifier ( ) const

Redraws the View and all Layouts it appears in, including all of its child components using the default options, and also returns a notifier to facilitate tracking the update progress.

Returns
An UpdateNotifier object that can be used to find out information about the update.

◆ UpdateWithNotifier() [2/2]

UpdateNotifier HPS::View::UpdateWithNotifier ( HPS::Window::UpdateType  in_type,
HPS::Time  in_time_limit = -1.0 
) const

Redraws the View and all Layouts it appears in, including all of its child components using the specified, and also returns a notifier to facilitate tracking the update progress.

Returns
HPS::UpdateNotifier to facilitate tracking the update progress.
Parameters
in_typeone of the enum values specified by HPS::Window::UpdateType
in_time_limitthe maximum amount of time, in seconds, to spend updating this HPS::Canvas
Returns
An UpdateNotifier object that can be used to find out information about the update.

Member Data Documentation

◆ staticType

const HPS::Type HPS::View::staticType = HPS::Type::View
static

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