50 #include "MovePlugin.hh"
51 #include <ACG/QtScenegraph/QtManipulatorNode.hh>
58 int nodeId = contextObject.toInt();
90 emit nodeVisibilityChanged(obj->
id());
97 int nodeId = contextObject.toInt();
128 pW->setWindowTitle(QString((mNode->
name()).c_str()));
130 connect(pW->posButton, SIGNAL(clicked() ),
this, SLOT(
slotSetPosition()));
131 connect(pW->axisAButton, SIGNAL(clicked() ),
this, SLOT(
slotToggleAxisA()));
132 connect(pW->axisBButton, SIGNAL(clicked() ),
this, SLOT(
slotToggleAxisB()));
135 connect(pW->transButton, SIGNAL(clicked() ),
this, SLOT(
slotTranslation()));
136 connect(pW->rotButton, SIGNAL(clicked() ),
this, SLOT(
slotRotate()));
137 connect(pW->scaleButton, SIGNAL(clicked() ),
this, SLOT(
slotScale()));
153 num = QString::number(pos[0]);
154 pW->posx->setText(num);
155 num = QString::number(pos[1]);
156 pW->posy->setText(num);
157 num = QString::number(pos[2]);
158 pW->posz->setText(num);
161 num = QString::number(direction[0]);
162 pW->dirxx->setText(num);
163 num = QString::number(direction[1]);
164 pW->dirxy->setText(num);
165 num = QString::number(direction[2]);
166 pW->dirxz->setText(num);
168 direction =
object->manipulatorNode()->directionY();
169 num = QString::number(direction[0]);
170 pW->diryx->setText(num);
171 num = QString::number(direction[1]);
172 pW->diryy->setText(num);
173 num = QString::number(direction[2]);
174 pW->diryz->setText(num);
176 direction =
object->manipulatorNode()->directionZ();
177 num = QString::number(direction[0]);
178 pW->dirzx->setText(num);
179 num = QString::number(direction[1]);
180 pW->dirzy->setText(num);
181 num = QString::number(direction[2]);
182 pW->dirzz->setText(num);
void slotSetDirection()
Set Direction of manipulator in tab changed.
std::string name() const
Returns: name of node (needs not be unique)
bool manipPlaced()
Check if the manipulator has been placed.
void slotMoveManipToCOG()
Move the current manipulator to the cog of the object.
bool visible()
Is node visible (status == Active)?
QtTranslationManipulatorNode * manipulatorNode()
bool getObject(int _identifier, BSplineCurveObject *&_object)
void slotTranslation()
perform a translation for Manipulator in tab
void setPickModeProps(movePropsWidget *_pW, const std::string &_pickmode)
List of properties dialogs (each corresponding to one manipulator)
ACG::SceneGraph::BaseNode * getSceneGraphRootNode()
get scenegraph root node
void ManipulatorPositionChanged(QtTranslationManipulatorNode *_node)
update object when its manipulator changes position
QList< movePropsWidget * > propsWindows_
List of properties dialogs (each corresponding to one manipulator)
QAction * contextActionHide_
Context menu entry to hide a manipulator.
QAction * contextAction_
Context menu entry for showing per manipulator settings.
movePropsWidget * getDialogWidget(BaseObjectData *_obj)
Get properties dialog widget that is attached to BaseDataObject obj.
const std::string pickMode()
Get the current Picking mode.
int lastActiveManipulator_
Stores the last manipulator which has been clicked ( used for the toolbox dialog) ...
void slotEnableSelectionMode()
stores the current axes in the tool
void slotScale()
Scale (with values from Tab)
void slotToggleAxisB()
Toggle the second axis for changing direction in tab.
void showProps()
Show properties of move manipulator in a dialog ( Called via context for picking. Get the picked id f...
void slotSetPosition()
Position of manipulator in tab changed.
BaseNode * find_node(BaseNode *_root, unsigned int _node_idx)
Find a node in the scene graph.
void slotProjectToTangentPlane()
Project the current manipulator onto the tangent plane of the object.
void manipulatorMoved(QtTranslationManipulatorNode *_node, QMouseEvent *_event)
move the object when its manipulator moves
void slotEnableObjectMode()
stores the current axes in the tool
void slotRotate()
Rotate Manipulator (with values from Tab)
void hideManipulator()
Hide the manipulator( Called via context for picking. Get the picked id from the Qvariant attached to...
void slotToggleAxisA()
Toggle the first axis for changing direction in tab.
int getIdentifier()
Get an identifier for that manipulator.