Commit 1e04a087 authored by Pierre Kraemer's avatar Pierre Kraemer

surface selection plugin ok

parent 5b65878e
......@@ -61,12 +61,11 @@ public:
private slots:
// slots called from SCHNApps signals
void selectedMapChanged(MapHandlerGen* prev, MapHandlerGen* cur);
void mapAdded(MapHandlerGen* map);
void mapRemoved(MapHandlerGen* map);
void updateSelectedCellsRendering();
// slots called from MapHandler signals
void attributeAdded(unsigned int orbit, const QString& name);
void selectedMapAttributeAdded(unsigned int orbit, const QString& name);
void selectedMapAttributeModified(unsigned int orbit, const QString& name);
public slots:
// slots for Python calls
......@@ -79,17 +78,20 @@ protected:
bool m_selecting;
Utils::PointSprite* m_pointSprite;
Utils::Drawer* m_drawer;
// cell under the mouse when selecting
Dart m_selectingVertex;
Dart m_selectingEdge;
Dart m_selectingFace;
// selected cells drawing
// selecting & selected cells drawing
Utils::PointSprite* m_pointSprite;
Utils::VBO* m_selectedVerticesVBO;
Utils::Drawer* m_selectedEdgesDrawer;
Utils::Drawer* m_selectedFacesDrawer;
Utils::Drawer* m_selectingCellDrawer;
// WithinSphere parameters
Utils::VBO* m_selectionSphereVBO;
PFP2::REAL m_selectionRadius;
......@@ -315,11 +315,11 @@ public:
// that means it just replaces VTBL of the object by VTBL of another class.
// NOTE: these two classes has to be ABI compatible!
template <typename TO_T, typename FROM_T>
inline void turn_to(FROM_T* p)
assert( sizeof(FROM_T) == sizeof(TO_T));
::new(p) TO_T(); // use of placement new
inline void turn_to(FROM_T* p)
assert(sizeof(FROM_T) == sizeof(TO_T));
::new(p) TO_T(); // use of placement new
} // namespace CGoGN
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment