API Documentation
Loading...
Searching...
No Matches
SnapsManager Class Reference

Manages which points are considered interesting based on defined criteria. More...

#include <SnapsManager.h>

Collaboration diagram for SnapsManager:
[legend]

Public Member Functions

bool checkLine (const SelectionInfo &info, const LineSegment< 3, fltp08 > &seg, bool infinite_length, SnapPoint &closest_snap, SnapPoint::SnapLocationType line_snap, SnapPoint::SnapLocationType edge_snap, UUID id, uint04 index, bool is_smooth) const
 
bool checkTriangle (const SelectionInfo &info, const Triangle< 3, fltp08 > &tri, SnapPoint &closest_snap, UUID id, uint04 index, bool is_smooth) const
 
bool checkVertex (SnapPoint::SnapLocationType snap, const SelectionInfo &info, const Vertex< 3, fltp08 > &point, SnapPoint &closest_snap, UUID id, uint04 index) const
 
SnapPoint getSnapLinePoint (const DesignObjectLookup *manager, const SelectionInfo &info, const SnapPoint &last, const Buffer< std::pair< UUID, uint04 > > &locations_of_interest, bool use_worldspace) const
 
void getSnapLinePoint (SnapPoint &current, const DesignObjectLookup *manager, const SelectionInfo &info, const SnapPoint &last, const Buffer< std::pair< UUID, uint04 > > &locations_of_interest, bool use_worldspace) const
 
SnapPoint getSnapPoint (const DesignObjectLookup *manager, const SelectionInfo &info, bool use_worldspace) const
 
void getSnapPoint (SnapPoint &current, const DesignObjectLookup *manager, const SelectionInfo &info, bool use_worldspace) const
 
bool isSnapEnabled (SnapPoint::SnapLocationType snap) const
 
void setAllEnabled (bool use_snap)
 
void setPriority (SnapPoint::SnapLocationType type, uint04 priority)
 
void setSensitivity (SnapPoint::SnapLocationType type, fltp08 sensitivity)
 
void setSnapEnabled (SnapPoint::SnapLocationType snap, bool use_snap)
 
 SnapsManager ()
 

Static Public Member Functions

static String SnapIcon (SnapPoint::SnapLocationType snap_type)
 

Protected Attributes

Dictionary< SnapPoint::SnapLocationType, bool > m_enabled_snaps
 
Dictionary< SnapPoint::SnapLocationType, uint04m_priority
 
Dictionary< SnapPoint::SnapLocationType, fltp08m_sensitivity
 

Detailed Description

Manages which points are considered interesting based on defined criteria.


Constructor & Destructor Documentation

◆ SnapsManager()

Member Function Documentation

◆ checkLine()

bool checkLine ( const SelectionInfo & info,
const LineSegment< 3, fltp08 > & seg,
bool infinite_length,
SnapPoint & closest_snap,
SnapPoint::SnapLocationType line_snap,
SnapPoint::SnapLocationType edge_snap,
UUID id,
uint04 index,
bool is_smooth ) const

◆ checkTriangle()

bool checkTriangle ( const SelectionInfo & info,
const Triangle< 3, fltp08 > & tri,
SnapPoint & closest_snap,
UUID id,
uint04 index,
bool is_smooth ) const

◆ checkVertex()

bool checkVertex ( SnapPoint::SnapLocationType snap,
const SelectionInfo & info,
const Vertex< 3, fltp08 > & point,
SnapPoint & closest_snap,
UUID id,
uint04 index ) const

◆ getSnapLinePoint() [1/2]

SnapPoint getSnapLinePoint ( const DesignObjectLookup * manager,
const SelectionInfo & info,
const SnapPoint & last,
const Buffer< std::pair< UUID, uint04 > > & locations_of_interest,
bool use_worldspace ) const

◆ getSnapLinePoint() [2/2]

void getSnapLinePoint ( SnapPoint & current,
const DesignObjectLookup * manager,
const SelectionInfo & info,
const SnapPoint & last,
const Buffer< std::pair< UUID, uint04 > > & locations_of_interest,
bool use_worldspace ) const

◆ getSnapPoint() [1/2]

SnapPoint getSnapPoint ( const DesignObjectLookup * manager,
const SelectionInfo & info,
bool use_worldspace ) const

◆ getSnapPoint() [2/2]

void getSnapPoint ( SnapPoint & current,
const DesignObjectLookup * manager,
const SelectionInfo & info,
bool use_worldspace ) const

◆ isSnapEnabled()

bool isSnapEnabled ( SnapPoint::SnapLocationType snap) const
inline

◆ setAllEnabled()

void setAllEnabled ( bool use_snap)

◆ setPriority()

void setPriority ( SnapPoint::SnapLocationType type,
uint04 priority )

◆ setSensitivity()

void setSensitivity ( SnapPoint::SnapLocationType type,
fltp08 sensitivity )

◆ setSnapEnabled()

void setSnapEnabled ( SnapPoint::SnapLocationType snap,
bool use_snap )
inline

◆ SnapIcon()

static String SnapIcon ( SnapPoint::SnapLocationType snap_type)
static

Member Data Documentation

◆ m_enabled_snaps

Dictionary<SnapPoint::SnapLocationType, bool> m_enabled_snaps
protected

◆ m_priority

◆ m_sensitivity

Dictionary<SnapPoint::SnapLocationType, fltp08> m_sensitivity
protected

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