33#include <NDEVR/Model.h>
37 class ModelEditController;
39 class DesignObjectLookup;
46 , e_vertex_offset_grips
48 , e_model_horizontal_offset_grips
49 , e_model_vertical_offset_grips
50 , e_model_rotate_grips
54 GripsModel(
const Model& model);
55 bool processSelection(SelectionInfo& info)
const;
56 void processSnapPoint(SnapPoint& point, DesignObjectLookup* lookup, SelectionInfo& info)
const;
58 GripMode processGripSelection(
const SnapPoint& point,
const void* lock_ptr);
59 GripMode processGripClicked(
const SnapPoint& point, ModelEditController& controller,
const void* lock_ptr);
61 static UUID CursorID();
62 static constexpr const char* TypeName() {
return "grips_model"; }
64 void attachTo(
const Model& model);
66 void setToDefaultGrips(
const void* lock =
nullptr);
67 void setToHighlight(
const void* lock =
nullptr);
68 void setColor(
const RGBColor& color,
const void* lock =
nullptr);
69 Ray<3, fltp08> getIndexNormal(uint04 index);
70 Ray<3, fltp08> getIndexTangent(uint04 index);
71 static RGBColor GripColor(GripMode mode);
73 void setActiveGripFlag(BitFlag flag,
const void* lock_ptr =
nullptr);
76 void setupBoundsModel();
77 void setupDiagonalExpandGrips();
78 void setupExpandGrips();
79 void setupRotationGrips();
80 void setupOffsetGrips(
bool horizontal);
81 void setupVertexGrips();
82 void hideAllGrips()
const;
83 void showGrip(uint04 index)
const;
86 Model m_diagonal_expand_grips;
88 Model m_rotation_grips;
89 Model m_horizontal_offset_grips;
90 Model m_vertical_offset_grips;
92 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:120