smesh/src/OBJECT/SMESH_ActorUtils.h

109 lines
2.7 KiB
C
Raw Normal View History

2013-04-01 19:05:47 +06:00
// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
2009-02-17 10:27:49 +05:00
//
2012-08-09 16:03:55 +06:00
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
2009-02-17 10:27:49 +05:00
//
2012-08-09 16:03:55 +06:00
// 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.
2009-02-17 10:27:49 +05:00
//
2012-08-09 16:03:55 +06:00
// 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.
2009-02-17 10:27:49 +05:00
//
2012-08-09 16:03:55 +06:00
// 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
2009-02-17 10:27:49 +05:00
//
2012-08-09 16:03:55 +06:00
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
2009-02-17 10:27:49 +05:00
//
2012-08-09 16:03:55 +06:00
2004-12-01 15:48:31 +05:00
#ifndef SMESH_ACTORUTILS_H
#define SMESH_ACTORUTILS_H
2003-05-19 20:07:00 +06:00
#include "SMESH_Object.h"
2012-08-09 16:03:55 +06:00
#include <map>
2009-02-17 10:27:49 +05:00
#include <QColor>
2005-01-20 11:25:54 +05:00
class vtkUnstructuredGrid;
2012-08-09 16:03:55 +06:00
class SMESH_Actor;
2004-12-01 15:48:31 +05:00
namespace SMESH
{
2013-02-12 20:37:44 +06:00
//! Label font family
enum LabelFont {
FntArial, //!< arial font family
FntCourier, //!< courier font family
FntTimes, //!< times font family
};
SMESHOBJECT_EXPORT
2013-03-01 19:13:25 +06:00
double
GetFloat( const QString& theValue,
2013-03-01 19:13:25 +06:00
double theDefault = 0 );
SMESHOBJECT_EXPORT
2013-03-01 19:13:25 +06:00
double
GetFloat( const QString& theName,
2012-08-09 16:03:55 +06:00
const QString& theSection,
2013-03-01 19:13:25 +06:00
double theDefault = 0 );
SMESHOBJECT_EXPORT
QColor
GetColor( const QString& theSect,
2012-08-09 16:03:55 +06:00
const QString& theName,
const QColor& = QColor() );
SMESHOBJECT_EXPORT
void
GetColor( const QString& theSect,
2012-08-09 16:03:55 +06:00
const QString& theName,
int&,
int&,
int&,
const QColor& = QColor() );
2004-12-01 15:48:31 +05:00
SMESHOBJECT_EXPORT
void
GetColor( const QString& theSect,
2012-08-09 16:03:55 +06:00
const QString& theName,
2013-03-01 19:13:25 +06:00
double&,
double&,
double&,
2012-08-09 16:03:55 +06:00
const QColor& = QColor() );
2005-06-27 17:29:58 +06:00
2012-08-09 16:03:55 +06:00
SMESHOBJECT_EXPORT
void
GetColor( const QString& theSect,
2013-02-12 20:37:44 +06:00
const QString& theName,
QColor& color,
int& delta,
QString def);
2012-08-09 16:03:55 +06:00
SMESHOBJECT_EXPORT
std::map<SMDSAbs_ElementType,int>
GetEntitiesFromObject(SMESH_VisualObj *theObject);
SMESHOBJECT_EXPORT
void
WriteUnstructuredGrid(vtkUnstructuredGrid* theGrid,
2012-08-09 16:03:55 +06:00
const char* theFileName);
#ifndef DISABLE_PLOT2DVIEWER
typedef enum {UpdateIn2dViewer = 0, RemoveFrom2dViewer } Viewer2dActionType;
SMESHOBJECT_EXPORT
void ProcessIn2DViewers( SMESH_Actor* theActor, Viewer2dActionType = UpdateIn2dViewer );
#endif
2005-01-20 11:25:54 +05:00
}
2004-12-01 15:48:31 +05:00
#endif