API Documentation
|
#include <SnapsManager.h>
Public Member Functions | |
SnapsManager () | |
void | setSensitivity (SnapPoint::SnapLocationType type, fltp08 sensitivity) |
void | setPriority (SnapPoint::SnapLocationType type, uint04 priority) |
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 |
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 |
bool | checkVertex (SnapPoint::SnapLocationType snap, const SelectionInfo &info, const Vertex< 3, fltp08 > &point, SnapPoint &closest_snap, UUID id, uint04 index) const |
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 | isSnapEnabled (SnapPoint::SnapLocationType snap) const |
void | setSnapEnabled (SnapPoint::SnapLocationType snap, bool use_snap) |
void | setAllEnabled (bool use_snap) |
Static Public Member Functions | |
static String | SnapIcon (SnapPoint::SnapLocationType snap_type) |
Protected Attributes | |
Dictionary< SnapPoint::SnapLocationType, bool > | m_enabled_snaps |
Dictionary< SnapPoint::SnapLocationType, fltp08 > | m_sensitivity |
Dictionary< SnapPoint::SnapLocationType, uint04 > | m_priority |
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 |