Salome HOME
rnc: added a method in FeatureDetector to cropp an image
[modules/geom.git] / src / GEOM / GEOM_Object.hxx
index f0b8adc1dd87f59fc2f28254c21ee2d50db0f922..77789a17faf4898672b765f7eac8f423ea0d00fe 100644 (file)
@@ -1,23 +1,23 @@
-//  Copyright (C) 2007-2010  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
 //
-//  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+// Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
 //
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of the GNU Lesser General Public
-//  License as published by the Free Software Foundation; either
-//  version 2.1 of the License.
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
 //
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
 #ifndef _GEOM_Object_HeaderFile
@@ -60,9 +60,6 @@
 #include <Aspect_TypeOfMarker.hxx>
 #endif
 
-#include "SALOMEconfig.h"
-#include CORBA_SERVER_HEADER(SALOMEDS)
-#include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
 
 class Handle_TColStd_HSequenceOfTransient;
 class Standard_Transient;
@@ -133,6 +130,16 @@ class Handle(GEOM_Object) : public Handle(MMgt_TShared) {
 class GEOM_Object : public MMgt_TShared
 {
  friend class GEOM_Engine;
+ public:
+  struct Color {
+    //! Red component of the color
+    double R;
+    //! Green component of the color
+    double G;
+    //! Blue component  of the color
+    double B;
+  };
 
  public:
   inline void* operator new(size_t,void* anAddress)
@@ -208,16 +215,16 @@ class GEOM_Object : public MMgt_TShared
   Standard_EXPORT char* GetName();
 
   //Sets a color of this GEOM_Object
-  Standard_EXPORT void SetColor(const SALOMEDS::Color& theColor);
+  Standard_EXPORT void SetColor(const Color& theColor);
 
   //Returns a color of this GEOM_Object
-  Standard_EXPORT SALOMEDS::Color GetColor();
+  Standard_EXPORT Color GetColor();
 
   //Toggles an auto color mode on this GEOM_Object
-  Standard_EXPORT void SetAutoColor(CORBA::Boolean theAutoColor);
+  Standard_EXPORT void SetAutoColor(bool theAutoColor);
 
   //Returns a flag of auto color mode of this GEOM_Object
-  Standard_EXPORT CORBA::Boolean GetAutoColor();
+  Standard_EXPORT bool GetAutoColor();
 
   //Sets predefined point marker texture
   Standard_EXPORT void SetMarkerStd(const Aspect_TypeOfMarker theType, double theSize);
@@ -302,6 +309,8 @@ class GEOM_Object : public MMgt_TShared
   TCollection_AsciiString   _ior;
   TCollection_AsciiString   _parameters;
   int                       _docID;
+
+
 };
 
 #endif