VISU.ColoredPrs3d_i Class Reference

#include <VISU_ColoredPrs3d_i.hh>

Inheritance diagram for VISU.ColoredPrs3d_i:

Inheritance graph

Public Types

typedef Prs3d_i TSuperClass
typedef std::map< std::string,
QString > 
TRestoringMap
typedef Storable *(* TStorableEngine )(SALOMEDS::SObject_ptr theSObject, const std::string &thePrefix, const TRestoringMap &theMap)
typedef std::map< std::string,
TStorableEngine
TCallbackMap

Public Member Functions

 ColoredPrs3d_i (Result_i *theResult, bool theAddToStudy)
 ColoredPrs3d_i (Result_i *theResult, SALOMEDS::SObject_ptr theSObject)
virtual ~ColoredPrs3d_i ()
virtual void RemoveFromStudy ()
 To remove the instance from study.
virtual CORBA::Long GetScalarMode ()
virtual void SetScalarMode (CORBA::Long theScalarMode)
virtual CORBA::Double GetMin ()
virtual CORBA::Double GetMax ()
virtual void SetNbColors (CORBA::Long theNbColors)
virtual CORBA::Long GetNbColors ()
virtual void SetBarOrientation (VISU::ScalarMap::Orientation theOrientation)
virtual VISU::ScalarMap::Orientation GetBarOrientation ()
virtual void SetPosition (CORBA::Double X, CORBA::Double Y)
virtual CORBA::Double GetPosX ()
virtual CORBA::Double GetPosY ()
virtual void SetSize (CORBA::Double theWidth, CORBA::Double theHeight)
virtual CORBA::Double GetWidth ()
virtual CORBA::Double GetHeight ()
virtual void SetLabels (CORBA::Long theNbLabels)
virtual CORBA::Long GetLabels ()
virtual void SetTitle (const char *theTitle)
virtual char * GetTitle ()
virtual StorableCreate (const char *theMeshName, VISU::Entity theEntity, const char *theFieldName, int theIteration)
 Creates ColoredPrs3d and initialises it from resources.
virtual StorableRestore (const Storable::TRestoringMap &theMap)
 To restore paramters of the instance from Storable.TRestoringMap.
virtual void ToStream (std::ostringstream &theStr)
 To save paramters of the instance to std.ostringstream.
virtual void SameAs (const Prs3d_i *theOrigin)
 To create a deep copy from another instance of the class.
void SameAsParams (const ColoredPrs3d_i *theOrigin, const std::string &theMeshName, const std::string &theFieldName, VISU::Entity theEntity, int theIteration, bool theIsFixedRange)
 Works like SameAs() method, but keep myIteration value unchanged.
virtual const VISU::PFieldGetField () const
const std::stringGetMeshName () const
VISU::Entity GetEntity () const
const std::stringGetFieldName () const
int GetIteration () const
VISU_ScalarMapPLGetScalarMapPL ()
virtual bool IsBoldTitle ()
virtual void SetBoldTitle (bool isBold)
virtual bool IsItalicTitle ()
virtual void SetItalicTitle (bool isItalic)
virtual bool IsShadowTitle ()
virtual void SetShadowTitle (bool isShadow)
virtual int GetTitFontType ()
virtual void SetTitFontType (int theType)
virtual void GetTitleColor (vtkFloatingPointType *theR, vtkFloatingPointType *theG, vtkFloatingPointType *theB)
virtual void SetTitleColor (vtkFloatingPointType theR, vtkFloatingPointType theG, vtkFloatingPointType theB)
virtual bool IsBoldLabel ()
virtual void SetBoldLabel (bool isBold)
virtual bool IsItalicLabel ()
virtual void SetItalicLabel (bool isItalic)
virtual bool IsShadowLabel ()
virtual void SetShadowLabel (bool isShadow)
virtual int GetLblFontType ()
virtual void SetLblFontType (int theType)
virtual void GetLabelColor (vtkFloatingPointType *theR, vtkFloatingPointType *theG, vtkFloatingPointType *theB)
virtual void SetLabelColor (vtkFloatingPointType theR, vtkFloatingPointType theG, vtkFloatingPointType theB)
std::string GetScalarBarTitle ()
virtual const char * GetComment () const =0
 To generate an unique type name for the class (used into persistent functionality).
virtual QString GenerateName ()=0
 To generate an unique name for the instance of the class.
Result_iGetResult () const
 Get corresponding Result_i.
virtual SALOMEDS::SObject_var GetSObject ()
 Get corresponding SALOMEDS.SObject.
virtual void Update ()
 To update is internal state.
VISU_PipeLineGetPL ()
 Get corresponding VISU_PipeLine.
vtkUnstructuredGrid * GetInput ()
 Get input of the VISU_PipeLine.
virtual VISU_ActorCreateActor (const Handle(SALOME_InteractiveObject)&theIO=NULL)=0
 To define a way to create VTK representation of the instance.
virtual void RemoveActor (VISU_Actor *theActor)
 To unregister the pointed actor.
virtual void RemoveActors ()
 To unregister all actors of the instance.
virtual void UpdateActor (VISU_Actor *theActor)
 To update the pointed actor.
virtual void UpdateActors ()
 To update all actors of the instance.
void RemoveAllClippingPlanes ()
bool AddClippingPlane (vtkPlane *thePlane)
vtkIdType GetNumberOfClippingPlanes () const
vtkPlaneGetClippingPlane (vtkIdType theID) const
void SetPlaneParam (vtkFloatingPointType theDir[3], vtkFloatingPointType theDist, vtkPlane *thePlane)
void GetBounds (vtkFloatingPointType aBounds[6])
void SetOffset (const CORBA::Float *theOffsets)
virtual void SetOffset (CORBA::Float theDx, CORBA::Float theDy, CORBA::Float theDz)
void GetOffset (CORBA::Float *theOffsets)
virtual void GetOffset (CORBA::Float &theDx, CORBA::Float &theDy, CORBA::Float &theDz)
virtual const char * GetName () const
virtual void SetName (const char *theName)
const SALOMEDS::Study_var & GetStudyDocument () const
QString GetEntry ()
std::string ToString ()
virtual char * GetID ()
virtual VISU::VISUType GetType ()=0

Static Public Member Functions

static void Registry (const char *theComment, TStorableEngine theEngine)
static StorableCreate (SALOMEDS::SObject_ptr, const std::string &thePrefix, const std::string &theString)
static QString FindValue (const TRestoringMap &theMap, const std::string &theArg, bool *isFind=NULL)
static QString FindValue (const TRestoringMap &theMap, const std::string &theArg, const QString &theDefaultValue)
static void StrToMap (const QString &theStr, VISU::Storable::TRestoringMap &theMap)
static SALOMEDS::SObject_ptr GetResultSO (SALOMEDS::SObject_ptr theSObject)
static void DataToStream (std::ostringstream &theStr, const QString &theName, const QString &theVal)
static void DataToStream (std::ostringstream &theStr, const QString &theName, const int theVal)
static void DataToStream (std::ostringstream &theStr, const QString &theName, const double theVal)
static CORBA::ORB_var GetORB ()
static PortableServer::POA_var GetPOA ()
static SALOME_NamingService * GetNS ()
static SALOME_LifeCycleCORBA * GetLCC ()
static VISU_Gen_iGetVisuGenImpl ()

Protected Member Functions

virtual void DoSetInput (Result_i *theResult)=0
StorableBuild (int theRestoring)
virtual void DoHook ()
virtual const char * GetIconName ()=0
void CreateActor (VISU_Actor *theActor, const Handle(SALOME_InteractiveObject)&theIO=NULL)
virtual VISU_PipeLineGetPipeLine ()
virtual void CheckDataSet ()
 To check dataset validity, throws std.exception if not valid.

Protected Attributes

VISU::ScalarMap::Orientation myOrientation
std::string myTitle
std::string myScalarBarTitle
int myNumberOfLabels
vtkFloatingPointType myPosition [2]
vtkFloatingPointType myWidth
vtkFloatingPointType myHeight
PField myField
TEntity myEntity
std::string myFieldName
int myIteration
bool myIsBoldTitle
bool myIsItalicTitle
bool myIsShadowTitle
int myTitFontType
vtkFloatingPointType myTitleColor [3]
bool myIsBoldLabel
bool myIsItalicLabel
bool myIsShadowLabel
int myLblFontType
vtkFloatingPointType myLabelColor [3]
VISU_ScalarMapPLmyScalarMapPL
bool myIsFixedRange
bool myAddToStudy
CORBA::Float myOffset [3]
Result_imyResult
VISU_PipeLinemyPipeLine
SALOMEDS::SObject_var mySObject
std::string myMeshName
boost::signal0< void > myUpdateActorsSignal
boost::signal0< void > myRemoveActorsFromRendererSignal
vtkSmartPointer< vtkActorCollection > myActorCollection
std::string myName
SALOMEDS::Study_var myStudy
std::string myID

Static Protected Attributes

static QMutex * myMutex = NULL
static CORBA::ORB_var myOrb
static PortableServer::POA_var myPoa
static SALOME_NamingService * myNamingService
static VISU_Gen_imyVisuGenImpl
static SALOME_LifeCycleCORBA * myEnginesLifeCycle

Private Member Functions

 ColoredPrs3d_i ()
 ColoredPrs3d_i (const ColoredPrs3d_i &)

Member Typedef Documentation

typedef Prs3d_i VISU.ColoredPrs3d_i.TSuperClass
 

Reimplemented in VISU.CutLines_i, VISU.CutPlanes_i, VISU.DeformedShape_i, VISU.GaussPoints_i, VISU.IsoSurfaces_i, VISU.Plot3D_i, VISU.PrsMerger_i, VISU.ScalarMap_i, VISU.ScalarMapOnDeformedShape_i, VISU.StreamLines_i, and VISU.Vectors_i.

typedef std::map<std::string,QString> VISU.Storable.TRestoringMap [inherited]
 

typedef Storable*(* VISU.Storable.TStorableEngine)(SALOMEDS::SObject_ptr theSObject, const std::string &thePrefix, const TRestoringMap &theMap) [inherited]
 

typedef std::map<std::string,TStorableEngine> VISU.Storable.TCallbackMap [inherited]
 


Constructor & Destructor Documentation

VISU.ColoredPrs3d_i.ColoredPrs3d_i  )  [private]
 

VISU.ColoredPrs3d_i.ColoredPrs3d_i const ColoredPrs3d_i  )  [private]
 

VISU.ColoredPrs3d_i::ColoredPrs3d_i Result_i theResult,
bool  theAddToStudy
[explicit]
 

VISU.ColoredPrs3d_i::ColoredPrs3d_i Result_i theResult,
SALOMEDS::SObject_ptr  theSObject
[explicit]
 

VISU.ColoredPrs3d_i::~ColoredPrs3d_i  )  [virtual]
 


Member Function Documentation

void VISU.ColoredPrs3d_i::RemoveFromStudy  )  [virtual]
 

Reimplemented from VISU.Prs3d_i.

CORBA::Long VISU.ColoredPrs3d_i::GetScalarMode  )  [virtual]
 

void VISU.ColoredPrs3d_i::SetScalarMode CORBA::Long  theScalarMode  )  [virtual]
 

CORBA::Double VISU.ColoredPrs3d_i::GetMin  )  [virtual]
 

Reimplemented in VISU.ScalarMapOnDeformedShape_i.

CORBA::Double VISU.ColoredPrs3d_i::GetMax  )  [virtual]
 

Reimplemented in VISU.ScalarMapOnDeformedShape_i.

void VISU.ColoredPrs3d_i::SetNbColors CORBA::Long  theNbColors  )  [virtual]
 

CORBA::Long VISU.ColoredPrs3d_i::GetNbColors  )  [virtual]
 

void VISU.ColoredPrs3d_i::SetBarOrientation VISU::ScalarMap::Orientation  theOrientation  )  [virtual]
 

Reimplemented in VISU.ScalarMap_i.

VISU::ScalarMap::Orientation VISU.ColoredPrs3d_i::GetBarOrientation  )  [virtual]
 

Reimplemented in VISU.ScalarMap_i.

void VISU.ColoredPrs3d_i::SetPosition CORBA::Double  X,
CORBA::Double  Y
[virtual]
 

CORBA::Double VISU.ColoredPrs3d_i::GetPosX  )  [virtual]
 

CORBA::Double VISU.ColoredPrs3d_i::GetPosY  )  [virtual]
 

void VISU.ColoredPrs3d_i::SetSize CORBA::Double  theWidth,
CORBA::Double  theHeight
[virtual]
 

CORBA::Double VISU.ColoredPrs3d_i::GetWidth  )  [virtual]
 

CORBA::Double VISU.ColoredPrs3d_i::GetHeight  )  [virtual]
 

void VISU.ColoredPrs3d_i::SetLabels CORBA::Long  theNbLabels  )  [virtual]
 

CORBA::Long VISU.ColoredPrs3d_i::GetLabels  )  [virtual]
 

void VISU.ColoredPrs3d_i::SetTitle const char *  theTitle  )  [virtual]
 

char * VISU.ColoredPrs3d_i::GetTitle  )  [virtual]
 

VISU::Storable * VISU.ColoredPrs3d_i::Create const char *  theMeshName,
VISU::Entity  theEntity,
const char *  theFieldName,
int  theIteration
[virtual]
 

Reimplemented in VISU.CutLines_i, VISU.CutPlanes_i, VISU.DeformedShape_i, VISU.GaussPoints_i, VISU.IsoSurfaces_i, VISU.Plot3D_i, VISU.PrsMerger_i, VISU.ScalarMap_i, VISU.ScalarMapOnDeformedShape_i, VISU.StreamLines_i, and VISU.Vectors_i.

VISU::Storable * VISU.ColoredPrs3d_i::Restore const Storable::TRestoringMap theMap  )  [virtual]
 

Reimplemented from VISU.Prs3d_i.

Reimplemented in VISU.CutLines_i, VISU.CutPlanes_i, VISU.DeformedShape_i, VISU.GaussPoints_i, VISU.IsoSurfaces_i, VISU.Plot3D_i, VISU.PrsMerger_i, VISU.ScalarMap_i, VISU.ScalarMapOnDeformedShape_i, VISU.StreamLines_i, and VISU.Vectors_i.

void VISU.ColoredPrs3d_i::ToStream std::ostringstream &  theStr  )  [virtual]
 

Reimplemented from VISU.Prs3d_i.

Reimplemented in VISU.CutLines_i, VISU.CutPlanes_i, VISU.DeformedShape_i, VISU.GaussPoints_i, VISU.IsoSurfaces_i, VISU.Plot3D_i, VISU.PrsMerger_i, VISU.ScalarMap_i, VISU.ScalarMapOnDeformedShape_i, VISU.StreamLines_i, and VISU.Vectors_i.

void VISU.ColoredPrs3d_i::SameAs const Prs3d_i theOrigin  )  [virtual]
 

Reimplemented from VISU.Prs3d_i.

Reimplemented in VISU.CutLines_i, VISU.DeformedShape_i, VISU.PrsMerger_i, VISU.ScalarMap_i, VISU.ScalarMapOnDeformedShape_i, VISU.StreamLines_i, and VISU.Vectors_i.

void VISU.ColoredPrs3d_i::SameAsParams const ColoredPrs3d_i theOrigin,
const std::string theMeshName,
const std::string theFieldName,
VISU::Entity  theEntity,
int  theIteration,
bool  theIsFixedRange
 

Is used in VISU_TimeAnimation class implementation.

const VISU::PField & VISU.ColoredPrs3d_i::GetField  )  const [virtual]
 

Reimplemented in VISU.ScalarMapOnDeformedShape_i.

const std::string & VISU.ColoredPrs3d_i::GetMeshName  )  const
 

Reimplemented from VISU.Prs3d_i.

VISU::Entity VISU.ColoredPrs3d_i::GetEntity  )  const
 

const std::string & VISU.ColoredPrs3d_i::GetFieldName  )  const
 

int VISU.ColoredPrs3d_i::GetIteration  )  const
 

VISU_ScalarMapPL * VISU.ColoredPrs3d_i::GetScalarMapPL  ) 
 

bool VISU.ColoredPrs3d_i::IsBoldTitle  )  [virtual]
 

void VISU.ColoredPrs3d_i::SetBoldTitle bool  isBold  )  [virtual]
 

bool VISU.ColoredPrs3d_i::IsItalicTitle  )  [virtual]
 

void VISU.ColoredPrs3d_i::SetItalicTitle bool  isItalic  )  [virtual]
 

bool VISU.ColoredPrs3d_i::IsShadowTitle  )  [virtual]
 

void VISU.ColoredPrs3d_i::SetShadowTitle bool  isShadow  )  [virtual]
 

int VISU.ColoredPrs3d_i::GetTitFontType  )  [virtual]
 

void VISU.ColoredPrs3d_i::SetTitFontType int  theType  )  [virtual]
 

void VISU.ColoredPrs3d_i::GetTitleColor vtkFloatingPointType *  theR,
vtkFloatingPointType *  theG,
vtkFloatingPointType *  theB
[virtual]
 

void VISU.ColoredPrs3d_i::SetTitleColor vtkFloatingPointType  theR,
vtkFloatingPointType  theG,
vtkFloatingPointType  theB
[virtual]
 

bool VISU.ColoredPrs3d_i::IsBoldLabel  )  [virtual]
 

void VISU.ColoredPrs3d_i::SetBoldLabel bool  isBold  )  [virtual]
 

bool VISU.ColoredPrs3d_i::IsItalicLabel  )  [virtual]
 

void VISU.ColoredPrs3d_i::SetItalicLabel bool  isItalic  )  [virtual]
 

bool VISU.ColoredPrs3d_i::IsShadowLabel  )  [virtual]
 

void VISU.ColoredPrs3d_i::SetShadowLabel bool  isShadow  )  [virtual]
 

int VISU.ColoredPrs3d_i::GetLblFontType  )  [virtual]
 

void VISU.ColoredPrs3d_i::SetLblFontType int  theType  )  [virtual]
 

void VISU.ColoredPrs3d_i::GetLabelColor vtkFloatingPointType *  theR,
vtkFloatingPointType *  theG,
vtkFloatingPointType *  theB
[virtual]
 

void VISU.ColoredPrs3d_i::SetLabelColor vtkFloatingPointType  theR,
vtkFloatingPointType  theG,
vtkFloatingPointType  theB
[virtual]
 

std::string VISU.ColoredPrs3d_i::GetScalarBarTitle  ) 
 

virtual void VISU.ColoredPrs3d_i.DoSetInput Result_i theResult  )  [protected, pure virtual]
 

Implemented in VISU.GaussPoints_i, and VISU.ScalarMap_i.

VISU::Storable * VISU.ColoredPrs3d_i::Build int  theRestoring  )  [protected]
 

void VISU.ColoredPrs3d_i::DoHook  )  [protected, virtual]
 

Reimplemented in VISU.CutLines_i, VISU.CutPlanes_i, VISU.DeformedShape_i, VISU.GaussPoints_i, VISU.IsoSurfaces_i, VISU.Plot3D_i, VISU.PrsMerger_i, VISU.ScalarMapOnDeformedShape_i, VISU.StreamLines_i, and VISU.Vectors_i.

virtual const char* VISU.ColoredPrs3d_i.GetIconName  )  [protected, pure virtual]
 

Implemented in VISU.CutLines_i, VISU.CutPlanes_i, VISU.DeformedShape_i, VISU.GaussPoints_i, VISU.IsoSurfaces_i, VISU.Plot3D_i, VISU.PrsMerger_i, VISU.ScalarMapOnDeformedShape_i, VISU.StreamLines_i, and VISU.Vectors_i.

virtual const char* VISU.Prs3d_i.GetComment  )  const [pure virtual, inherited]
 

Implements VISU.Storable.

Implemented in VISU.CutLines_i, VISU.CutPlanes_i, VISU.DeformedShape_i, VISU.GaussPoints_i, VISU.IsoSurfaces_i, VISU.Mesh_i, VISU.Plot3D_i, VISU.PrsMerger_i, VISU.ScalarMap_i, VISU.ScalarMapOnDeformedShape_i, VISU.StreamLines_i, and VISU.Vectors_i.

virtual QString VISU.Prs3d_i.GenerateName  )  [pure virtual, inherited]
 

Implemented in VISU.CutLines_i, VISU.CutPlanes_i, VISU.DeformedShape_i, VISU.GaussPoints_i, VISU.IsoSurfaces_i, VISU.Mesh_i, VISU.Plot3D_i, VISU.PrsMerger_i, VISU.ScalarMap_i,