Version: 6.3.1

src/OBJECT/SMESH_ActorUtils.h

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 #ifndef SMESH_ACTORUTILS_H
00024 #define SMESH_ACTORUTILS_H
00025 
00026 #include "SMESH_Object.h"
00027 
00028 #include <QColor>
00029 
00030 class vtkUnstructuredGrid;
00031 class SMESH_Actor;
00032 
00033 namespace SMESH
00034 {
00035 SMESHOBJECT_EXPORT  
00036   vtkFloatingPointType 
00037   GetFloat( const QString& theValue, 
00038             vtkFloatingPointType theDefault = 0 );
00039 
00040 SMESHOBJECT_EXPORT
00041   vtkFloatingPointType 
00042   GetFloat( const QString& theName, 
00043             const QString& theSection, 
00044             vtkFloatingPointType theDefault = 0 );
00045 
00046 SMESHOBJECT_EXPORT
00047   QColor 
00048   GetColor( const QString& theSect, 
00049             const QString& theName, 
00050             const QColor& = QColor() );
00051 
00052 SMESHOBJECT_EXPORT
00053   void
00054   GetColor( const QString& theSect, 
00055             const QString& theName, 
00056             int&, 
00057             int&, 
00058             int&, 
00059             const QColor& = QColor() );
00060 
00061 SMESHOBJECT_EXPORT
00062   void
00063   GetColor( const QString& theSect, 
00064             const QString& theName, 
00065             vtkFloatingPointType&, 
00066             vtkFloatingPointType&, 
00067             vtkFloatingPointType&, 
00068             const QColor& = QColor() );
00069 
00070 SMESHOBJECT_EXPORT
00071   void 
00072   WriteUnstructuredGrid(vtkUnstructuredGrid* theGrid, 
00073                         const char* theFileName);
00074 
00075 
00076 #ifndef DISABLE_PLOT2DVIEWER
00077  
00078  typedef enum {UpdateIn2dViewer = 0, RemoveFrom2dViewer } Viewer2dActionType;
00079  
00080  SMESHOBJECT_EXPORT
00081    void ProcessIn2DViewers( SMESH_Actor* theActor, Viewer2dActionType = UpdateIn2dViewer );
00082  
00083 #endif
00084 
00085 
00086 }
00087 
00088 #endif
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS