API Documentation
|
Manages which points are considered interesting based on defined criteria. More...
#include <SnapsManager.h>
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 ¤t, 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 ¤t, 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, uint04 > | m_priority |
Dictionary< SnapPoint::SnapLocationType, fltp08 > | m_sensitivity |
Manages which points are considered interesting based on defined criteria.
SnapsManager | ( | ) |
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 |
|
inline |
void setAllEnabled | ( | bool | use_snap | ) |
void setPriority | ( | SnapPoint::SnapLocationType | type, |
uint04 | priority ) |
void setSensitivity | ( | SnapPoint::SnapLocationType | type, |
fltp08 | sensitivity ) |
|
inline |
|
static |
|
protected |
|
protected |
|
protected |