33#include <NDEVR/Model.h>
37 class ModelEditController;
39 class DesignObjectLookup;
50 , e_vertex_offset_grips
52 , e_model_horizontal_offset_grips
53 , e_model_vertical_offset_grips
54 , e_model_rotate_grips
58 GripsModel(
const Model& model);
59 bool processSelection(SelectionInfo& info)
const;
60 void processSnapPoint(SnapPoint& point, DesignObjectLookup* lookup, SelectionInfo& info)
const;
62 GripMode processGripSelection(
const SnapPoint& point,
const void* lock_ptr);
63 GripMode processGripClicked(
const SnapPoint& point, ModelEditController& controller,
const void* lock_ptr);
65 static UUID CursorID();
66 static constexpr const char* TypeName() {
return "grips_model"; }
68 void attachTo(
const Model& model);
70 void setToDefaultGrips(
const void* lock =
nullptr);
71 void setToHighlight(
const void* lock =
nullptr);
72 void setColor(
const RGBColor& color,
const void* lock =
nullptr);
73 Ray<3, fltp08> getIndexNormal(uint04 index);
74 Ray<3, fltp08> getIndexTangent(uint04 index);
75 static RGBColor GripColor(GripMode mode);
77 void setActiveGripFlag(BitFlag flag,
const void* lock_ptr =
nullptr);
80 void setupBoundsModel();
81 void setupDiagonalExpandGrips();
82 void setupExpandGrips();
83 void setupRotationGrips();
84 void setupOffsetGrips(
bool horizontal);
85 void setupVertexGrips();
86 void hideAllGrips()
const;
87 void showGrip(uint04 index)
const;
90 Model m_diagonal_expand_grips;
92 Model m_rotation_grips;
93 Model m_horizontal_offset_grips;
94 Model m_vertical_offset_grips;
96 static const constexpr uint04 rotate_segs = 128;
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96