fix msvc problems
This commit is contained in:
parent
53531b603a
commit
40c79f18e4
|
@ -474,3 +474,29 @@ std::vector<Base::Vector3d> ViewProvider::getModelPoints(const SoPickedPoint* pp
|
|||
pts.push_back(Base::Vector3d(vec[0],vec[1],vec[2]));
|
||||
return pts;
|
||||
}
|
||||
|
||||
bool ViewProvider::keyPressed(bool pressed, int key)
|
||||
{
|
||||
(void)pressed;
|
||||
(void)key;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ViewProvider::mouseMove(const SbVec2s &cursorPos,
|
||||
View3DInventorViewer* viewer)
|
||||
{
|
||||
(void)cursorPos;
|
||||
(void)viewer;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ViewProvider::mouseButtonPressed(int button, bool pressed,
|
||||
const SbVec2s &cursorPos,
|
||||
const View3DInventorViewer* viewer)
|
||||
{
|
||||
(void)button;
|
||||
(void)pressed;
|
||||
(void)cursorPos;
|
||||
(void)viewer;
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -290,29 +290,14 @@ public:
|
|||
//@}
|
||||
|
||||
/// is called when the provider is in edit and a key event occurs. Only ESC ends edit.
|
||||
virtual bool keyPressed(bool pressed, int key) {
|
||||
(void)pressed;
|
||||
(void)key;
|
||||
return false;
|
||||
}
|
||||
virtual bool keyPressed(bool pressed, int key);
|
||||
/// is called by the tree if the user double click on the object
|
||||
virtual bool doubleClicked(void) { return false; }
|
||||
/// is called when the provider is in edit and the mouse is moved
|
||||
virtual bool mouseMove(const SbVec2s &cursorPos,
|
||||
View3DInventorViewer* viewer) {
|
||||
(void)cursorPos;
|
||||
(void)viewer;
|
||||
return false;
|
||||
}
|
||||
virtual bool mouseMove(const SbVec2s &cursorPos, View3DInventorViewer* viewer);
|
||||
/// is called when the Provider is in edit and the mouse is clicked
|
||||
virtual bool mouseButtonPressed(int button, bool pressed, const SbVec2s &cursorPos,
|
||||
const View3DInventorViewer* viewer) {
|
||||
(void)button;
|
||||
(void)pressed;
|
||||
(void)cursorPos;
|
||||
(void)viewer;
|
||||
return false;
|
||||
}
|
||||
const View3DInventorViewer* viewer);
|
||||
/// set up the context-menu with the supported edit modes
|
||||
virtual void setupContextMenu(QMenu*, QObject*, const char*) {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user