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);
BaseNode * find_node(BaseNode *_root, unsigned int _node_idx)
Find a node in the scene graph.
void slotToggleAxisB()
Toggle the second axis for changing direction in tab.
QList< movePropsWidget * > propsWindows_
List of properties dialogs (each corresponding to one manipulator)
bool getObject(int _identifier, BSplineCurveObject *&_object)
void slotToggleAxisA()
Toggle the first axis for changing direction in tab.
bool visible()
Is node visible (status == Active)?
void hideManipulator()
Hide the manipulator( Called via context for picking. Get the picked id from the Qvariant attached to...
void showProps()
Show properties of move manipulator in a dialog ( Called via context for picking. Get the picked id f...
int getIdentifier()
Get an identifier for that manipulator.
void slotEnableSelectionMode()
stores the current axes in the tool
QtTranslationManipulatorNode * manipulatorNode()
void slotProjectToTangentPlane()
Project the current manipulator onto the tangent plane of the object.
const std::string pickMode()
Get the current Picking mode.
void manipulatorMoved(QtTranslationManipulatorNode *_node, QMouseEvent *_event)
move the object when its manipulator moves
QAction * contextAction_
Context menu entry for showing per manipulator settings.
movePropsWidget * getDialogWidget(BaseObjectData *_obj)
Get properties dialog widget that is attached to BaseDataObject obj.
void slotRotate()
Rotate Manipulator (with values from Tab)
void setPickModeProps(movePropsWidget *_pW, const std::string &_pickmode)
List of properties dialogs (each corresponding to one manipulator)
void slotTranslation()
perform a translation for Manipulator in tab
std::string name() const
Returns: name of node (needs not be unique)
void slotMoveManipToCOG()
Move the current manipulator to the cog of the object.
void ManipulatorPositionChanged(QtTranslationManipulatorNode *_node)
update object when its manipulator changes position
int lastActiveManipulator_
Stores the last manipulator which has been clicked ( used for the toolbox dialog) ...
void slotSetPosition()
Position of manipulator in tab changed.
bool manipPlaced()
Check if the manipulator has been placed.
ACG::SceneGraph::BaseNode * getSceneGraphRootNode()
get scenegraph root node
QAction * contextActionHide_
Context menu entry to hide a manipulator.
void slotEnableObjectMode()
stores the current axes in the tool
void slotScale()
Scale (with values from Tab)
void slotSetDirection()
Set Direction of manipulator in tab changed.