API Documentation
Loading...
Searching...
No Matches
SelectionInfo Class Referencefinal

Responsible for turning a user interaction into a selection within a DesignObjectLookup. More...

#include <Selector.h>

Inheritance diagram for SelectionInfo:
[legend]
Collaboration diagram for SelectionInfo:
[legend]

Classes

class  ClosestModelInfo
 

Public Member Functions

bool allowSolidInteraction () const
 
void clear ()
 
void clearLastSelection ()
 
void getEnclosedVertices (GeometryVertices &vertices) const
 
Bounds< 3, fltp08globalSelectionBounds () const
 
fltp08 localClosestDistanceSqr (PrimitiveMode mode) const
 
UUID nearestGeometry (PrimitiveMode mode) const
 
UUID nearestModel () const
 
Vertex< 3, fltp08nearestScreenLocation () const
 
Vertex< 3, fltp08nearestWorldLocation () const
 
bool operator== (const SelectionInfo &) const
 
void popTransform ()
 
ParseResult postProcess (Model &model) override
 
ParseResult process (Model &model) override
 
ParseResult process (Model &model, Geometry &geo) override
 
ParseResult process (Model &model, Material &mat) override
 
bool processGeometry (const Geometry &geo, PrimitiveProperty primitive_property)
 
void pushTransform (const Matrix< fltp08 > &transform, bool apply_to_original)
 
fltp08 screenClosestDistanceSqr (bool outer_bound) const
 
fltp08 screenClosestDistanceSqr (PrimitiveMode mode) const
 
Bounds< 3, fltp08selectionBounds () const
 
 SelectionInfo ()
 
void setAllowSolidInteraction (bool allow_solid_intersection)
 
void setGeometryTransform (PrimitiveMode mode, const Matrix< fltp08 > &mat)
 
void setNearestGeometry (const Geometry &geo, PrimitiveMode primitive_mode, uint04 index, uint04 vertex)
 
void setNearestLayer (PrimitiveMode mode, const UUID &layer)
 
void setNearestMaterial (PrimitiveMode mode, const UUID &material)
 
void setNearestModel (PrimitiveMode mode, const Model &model)
 
bool setNearestScreenPosition (PrimitiveMode mode, const Vertex< 3, fltp08 > &screen_point, fltp08 screen_distance)
 
void updateLineEndPoint (PrimitiveMode mode, Vertex< 3, fltp08 > vec)
 
UUID uuid () const
 
bool validModelSelection (const Model &model) const
 
- Public Member Functions inherited from ModelIterator
Model currentModel () const
 
 ModelIterator ()
 
 ModelIterator (Buffer< Model > models)
 
 ModelIterator (const Model &model)
 
void parseAll ()
 
void parseAll (const Buffer< Model > &models)
 
void parseAll (const Model &model)
 
ParseResult parseNext ()
 

Public Attributes

bool allow_inverse_trans = false
 
UUID camera = Constant<UUID>::Invalid
 
UUID current_model = Constant<UUID>::Invalid
 
SelectionArea< 3, fltp08current_selection
 
UUID grips = Constant<UUID>::Invalid
 
bool is_edit = false
 
bool is_exact = true
 
bool mask_added = false
 
bool mask_subtracted = true
 
fltp08 min_screen_cutoff_distance = 0.0
 
ClosestModelInfo nearest_line
 
ClosestModelInfo nearest_point
 
ClosestModelInfo nearest_solid
 
Material override_material
 
fltp08 screen_line_bias = 0.0
 
fltp08 screen_point_bias = 0.0
 
DesignSelection selection
 
std::function< bool(const Model &)> selection_filter
 
Buffer< SelectionArea< 3, fltp08 > > selection_masks
 
WindingMode selection_winding_mode
 
bool use_interaction_flag = true
 
Vertex< 3, fltp08world_nearest_location
 
LineSegment< 3, fltp08world_selection_line
 
- Public Attributes inherited from ModelIterator
bool depth_first = true
 
std::function< bool(const Model &, const Geometry &)> geo_filter
 
bool is_recursive = true
 
std::function< bool(const Model &, const Material &)> material_filter
 
PrimitiveProperty material_property = PrimitiveProperty::Solid
 
std::function< bool(const Model &)> model_filter
 
bool post_process_model = false
 
bool process_geometry = true
 
bool process_material = false
 
bool process_model = true
 
bool use_unit = false
 

Protected Attributes

bool m_allow_solid_intersection
 
UUID m_id
 
Buffer< Buffer< Matrix< fltp08 > > > m_pushed_mask_transforms
 
Buffer< Matrix< fltp08 > > m_pushed_transforms
 
Buffer< Modelm_valid_model_stack
 
- Protected Attributes inherited from ModelIterator
Buffer< uint04m_model_parent_child_count
 
Buffer< Modelm_model_parent_stack
 
Buffer< Modelm_model_stack
 

Additional Inherited Members

- Public Types inherited from ModelIterator
enum  ParseResult { e_continue_parsing , e_do_not_parse_children , e_finish_parsing }
 
- Protected Member Functions inherited from ModelIterator
virtual void parseAllModels ()
 
Model popNextModel ()
 
void removeFromPostProcessStack ()
 

Detailed Description

Responsible for turning a user interaction into a selection within a DesignObjectLookup.


Constructor & Destructor Documentation

◆ SelectionInfo()

Member Function Documentation

◆ allowSolidInteraction()

bool allowSolidInteraction ( ) const
inline

◆ clear()

void clear ( )

◆ clearLastSelection()

void clearLastSelection ( )

◆ getEnclosedVertices()

void getEnclosedVertices ( GeometryVertices & vertices) const

◆ globalSelectionBounds()

Bounds< 3, fltp08 > globalSelectionBounds ( ) const

◆ localClosestDistanceSqr()

fltp08 localClosestDistanceSqr ( PrimitiveMode mode) const

◆ nearestGeometry()

UUID nearestGeometry ( PrimitiveMode mode) const

◆ nearestModel()

UUID nearestModel ( ) const

◆ nearestScreenLocation()

Vertex< 3, fltp08 > nearestScreenLocation ( ) const

◆ nearestWorldLocation()

Vertex< 3, fltp08 > nearestWorldLocation ( ) const

◆ operator==()

bool operator== ( const SelectionInfo & ) const
inline

◆ popTransform()

void popTransform ( )

◆ postProcess()

ParseResult postProcess ( Model & model)
overridevirtual

Reimplemented from ModelIterator.

◆ process() [1/3]

ParseResult process ( Model & model)
overridevirtual

Reimplemented from ModelIterator.

◆ process() [2/3]

ParseResult process ( Model & model,
Geometry & geo )
overridevirtual

Reimplemented from ModelIterator.

◆ process() [3/3]

ParseResult process ( Model & model,
Material & mat )
overridevirtual

Reimplemented from ModelIterator.

◆ processGeometry()

bool processGeometry ( const Geometry & geo,
PrimitiveProperty primitive_property )

◆ pushTransform()

void pushTransform ( const Matrix< fltp08 > & transform,
bool apply_to_original )

◆ screenClosestDistanceSqr() [1/2]

fltp08 screenClosestDistanceSqr ( bool outer_bound) const

◆ screenClosestDistanceSqr() [2/2]

fltp08 screenClosestDistanceSqr ( PrimitiveMode mode) const

◆ selectionBounds()

Bounds< 3, fltp08 > selectionBounds ( ) const

◆ setAllowSolidInteraction()

void setAllowSolidInteraction ( bool allow_solid_intersection)
inline

◆ setGeometryTransform()

void setGeometryTransform ( PrimitiveMode mode,
const Matrix< fltp08 > & mat )

◆ setNearestGeometry()

void setNearestGeometry ( const Geometry & geo,
PrimitiveMode primitive_mode,
uint04 index,
uint04 vertex )

◆ setNearestLayer()

void setNearestLayer ( PrimitiveMode mode,
const UUID & layer )

◆ setNearestMaterial()

void setNearestMaterial ( PrimitiveMode mode,
const UUID & material )

◆ setNearestModel()

void setNearestModel ( PrimitiveMode mode,
const Model & model )

◆ setNearestScreenPosition()

bool setNearestScreenPosition ( PrimitiveMode mode,
const Vertex< 3, fltp08 > & screen_point,
fltp08 screen_distance )

◆ updateLineEndPoint()

void updateLineEndPoint ( PrimitiveMode mode,
Vertex< 3, fltp08 > vec )

◆ uuid()

UUID uuid ( ) const
inline

◆ validModelSelection()

bool validModelSelection ( const Model & model) const

Member Data Documentation

◆ allow_inverse_trans

bool allow_inverse_trans = false

◆ camera

◆ current_model

UUID current_model = Constant<UUID>::Invalid

◆ current_selection

SelectionArea<3, fltp08> current_selection

◆ grips

◆ is_edit

bool is_edit = false

◆ is_exact

bool is_exact = true

◆ m_allow_solid_intersection

bool m_allow_solid_intersection
protected

◆ m_id

UUID m_id
protected

◆ m_pushed_mask_transforms

Buffer<Buffer<Matrix<fltp08> > > m_pushed_mask_transforms
protected

◆ m_pushed_transforms

Buffer<Matrix<fltp08> > m_pushed_transforms
protected

◆ m_valid_model_stack

Buffer<Model> m_valid_model_stack
protected

◆ mask_added

bool mask_added = false

◆ mask_subtracted

bool mask_subtracted = true

◆ min_screen_cutoff_distance

fltp08 min_screen_cutoff_distance = 0.0

◆ nearest_line

ClosestModelInfo nearest_line

◆ nearest_point

ClosestModelInfo nearest_point

◆ nearest_solid

ClosestModelInfo nearest_solid

◆ override_material

Material override_material

◆ screen_line_bias

fltp08 screen_line_bias = 0.0

◆ screen_point_bias

fltp08 screen_point_bias = 0.0

◆ selection

DesignSelection selection

◆ selection_filter

std::function<bool(const Model&)> selection_filter

◆ selection_masks

Buffer<SelectionArea<3, fltp08> > selection_masks

◆ selection_winding_mode

WindingMode selection_winding_mode

◆ use_interaction_flag

bool use_interaction_flag = true

◆ world_nearest_location

Vertex<3, fltp08> world_nearest_location

◆ world_selection_line

LineSegment<3, fltp08> world_selection_line

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