diff --git a/types/objectId/SelectionObjectMarker.cc b/types/objectId/SelectionObjectMarker.cc index b0c31d6f4ddb025f8a0a77bdb75efe2616bcdfa6..b0bac43bac5b56902d07c13863bd2c5f39ab541a 100644 --- a/types/objectId/SelectionObjectMarker.cc +++ b/types/objectId/SelectionObjectMarker.cc @@ -43,11 +43,13 @@ #include #include "SelectionObjectMarker.hh" + +namespace VSI { //****************************************************************************** -const ACG::Vec4f disabled_color (0.4f,0.4f,0.4f,1.0f); -const ACG::Vec4f selected_color (0.0f,1.0f,0.0f,0.5f); +static const ACG::Vec4f disabled_color (0.4f,0.4f,0.4f,1.0f); +static const ACG::Vec4f selected_color (0.0f,1.0f,0.0f,0.5f); //****************************************************************************** @@ -87,3 +89,4 @@ bool SelectionObjectMarker::blendForStencilRefNumber(GLuint _reference, GLenum & return false; } +} // namespace VSI diff --git a/types/objectId/SelectionObjectMarker.hh b/types/objectId/SelectionObjectMarker.hh index b0ec94063ebd10a2b1c0a2a4b1cceb7d8e1f75f0..ea76406e2222ceac251851d5412e366de449e9f3 100644 --- a/types/objectId/SelectionObjectMarker.hh +++ b/types/objectId/SelectionObjectMarker.hh @@ -48,6 +48,7 @@ #include #include +namespace VSI { /** Object marker to visualize objectPickDialog selection */ class SelectionObjectMarker : public ViewObjectMarker @@ -59,4 +60,6 @@ class SelectionObjectMarker : public ViewObjectMarker bool blendForStencilRefNumber (GLuint _reference, GLenum &_src, GLenum &_dst, ACG::Vec4f &_color); }; +} // namespce VSI + #endif diff --git a/types/objectId/TreeModel.cc b/types/objectId/TreeModel.cc index 869bb97bbc946b9ecde1d815ee41b649d784073c..2d46246ac10a2f5abede1283357683928ba610ee 100644 --- a/types/objectId/TreeModel.cc +++ b/types/objectId/TreeModel.cc @@ -51,6 +51,7 @@ #include +namespace VSI { //****************************************************************************** @@ -594,3 +595,6 @@ bool TreeModel::setData(const QModelIndex &_index, const QVariant &_value, int / bool TreeModel::isRoot(TreeItem * _item) { return ( _item == rootItem_ ); } + + +} // namespace VSI diff --git a/types/objectId/TreeModel.hh b/types/objectId/TreeModel.hh index b531c764cee6f350f6b24d14adb570252dbae1e5..31de56a2db26bb3375873aeb2e0fd4110801c75f 100644 --- a/types/objectId/TreeModel.hh +++ b/types/objectId/TreeModel.hh @@ -50,6 +50,8 @@ #include "TreeItem.hh" +namespace VSI { + class TreeModel : public QAbstractItemModel { Q_OBJECT @@ -169,5 +171,7 @@ private: }; +} // namespace VSI + #endif diff --git a/types/objectId/objectIdWidget.hh b/types/objectId/objectIdWidget.hh index 69927c9e15a1aac7a5fad466d6b334b5525818bf..0b6024ad420c4a321a6e6887eddb859980154fb5 100644 --- a/types/objectId/objectIdWidget.hh +++ b/types/objectId/objectIdWidget.hh @@ -50,11 +50,12 @@ //== FORWARDDECLARATIONS ====================================================== class QComboBox; class QPushButton; -class TreeModel; //== NAMESPACES =============================================================== namespace VSI { +class TreeModel; + //== CLASS DEFINITION ========================================================= /** Widget to configure object id inputs diff --git a/types/objectId/objectPickDialog.hh b/types/objectId/objectPickDialog.hh index 8cba2644a1e55ca1e63711d33caad2a5abfd8f8e..6410a6eba76b43ae717b4c9e47439fa80f8cc34c 100644 --- a/types/objectId/objectPickDialog.hh +++ b/types/objectId/objectPickDialog.hh @@ -55,13 +55,14 @@ class QPushButton; class QTreeView; class QMouseEvent; -class TreeModel; class SimpleViewer; //== NAMESPACES =============================================================== namespace VSI { +class TreeModel; + //== CLASS DEFINITION ========================================================= /** Widget to pick a object