Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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