VISU.Curve_i Class Reference

#include <VISU_Table_i.hh>

Inheritance diagram for VISU.Curve_i:

Inheritance graph

Public Types

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

 Curve_i (SALOMEDS::Study_ptr theStudy, Table_i *theTable, CORBA::Long theHRow, CORBA::Long theVRow)
virtual ~Curve_i ()
virtual VISU::VISUType GetType ()
virtual void SetTitle (const char *theName)
virtual char * GetTitle ()
virtual void SetColor (const SALOMEDS::Color &theColor)
virtual SALOMEDS::Color GetColor ()
virtual void SetMarker (VISU::Curve::MarkerType theType)
virtual VISU::Curve::MarkerType GetMarker ()
virtual void SetLine (VISU::Curve::LineType theType, CORBA::Long theWidth)
virtual VISU::Curve::LineType GetLine ()
virtual CORBA::Long GetLineWidth ()
virtual void RemoveFromStudy ()
virtual SALOMEDS::SObject_var GetSObject ()
virtual StorableCreate ()
int GetHRow () const
int GetVRow () const
virtual StorableRestore (const Storable::TRestoringMap &theMap, SALOMEDS::SObject_ptr theSO)
virtual void ToStream (std::ostringstream &theStr)
virtual const char * GetComment () const
virtual const char * GenerateName ()
virtual const char * GetTableID ()
virtual CORBA::Boolean IsAuto ()
virtual CORBA::Boolean IsValid ()
virtual std::string GetHorTitle ()
virtual std::string GetVerTitle ()
virtual std::string GetHorUnits ()
virtual std::string GetVerUnits ()
virtual int GetData (double *&theHorList, double *&theVerList)
virtual SPlot2d_Curve * CreatePresentation ()
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 ()

Static Public Member Functions

static StorableRestore (SALOMEDS::SObject_ptr theSObject, const std::string &thePrefix, const Storable::TRestoringMap &theMap)
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 ()

Static Public Attributes

static const std::string myComment = "CURVE"

Protected Member Functions

StorableBuild (int theRestoring)

Protected Attributes

Table_imyTable
int myHRow
int myVRow
SALOMEDS::Color myColor
VISU::Curve::MarkerType myMarker
VISU::Curve::LineType myLine
int myLineWidth
std::string myTitle
bool myAuto
SALOMEDS::SObject_var mySObj
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

 Curve_i ()
 Curve_i (const Curve_i &)

Static Private Attributes

static int myNbPresent = 0

Member Typedef Documentation

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.Curve_i.Curve_i  )  [private]
 

VISU.Curve_i.Curve_i const Curve_i  )  [private]
 

VISU.Curve_i::Curve_i SALOMEDS::Study_ptr  theStudy,
Table_i theTable,
CORBA::Long  theHRow,
CORBA::Long  theVRow
 

Constructor NB : theHRow, theVRow are the indexes of rows in the Table object and numbered from the 1 to GetNbRows()

VISU.Curve_i::~Curve_i  )  [virtual]
 

Destructor


Member Function Documentation

virtual VISU::VISUType VISU.Curve_i.GetType  )  [virtual]
 

Implements VISU.Base_i.

virtual void VISU.Curve_i.SetTitle const char *  theName  )  [virtual]
 

virtual char* VISU.Curve_i.GetTitle  )  [virtual]
 

virtual void VISU.Curve_i.SetColor const SALOMEDS::Color &  theColor  )  [virtual]
 

virtual SALOMEDS::Color VISU.Curve_i.GetColor  )  [virtual]
 

virtual void VISU.Curve_i.SetMarker VISU::Curve::MarkerType  theType  )  [virtual]
 

virtual VISU::Curve::MarkerType VISU.Curve_i.GetMarker  )  [virtual]
 

virtual void VISU.Curve_i.SetLine VISU::Curve::LineType  theType,
CORBA::Long  theWidth
[virtual]
 

virtual VISU::Curve::LineType VISU.Curve_i.GetLine  )  [virtual]
 

virtual CORBA::Long VISU.Curve_i.GetLineWidth  )  [virtual]
 

void VISU.Curve_i::RemoveFromStudy  )  [virtual]
 

Implements VISU.RemovableObject_i.

SALOMEDS::SObject_var VISU.Curve_i::GetSObject  )  [virtual]
 

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

Builds presentation of curve

VISU::Storable * VISU.Curve_i::Create  )  [virtual]
 

Creates curve object

int VISU.Curve_i.GetHRow  )  const
 

int VISU.Curve_i.GetVRow  )  const
 

VISU::Storable * VISU.Curve_i::Restore const Storable::TRestoringMap theMap,
SALOMEDS::SObject_ptr  theSO
[virtual]
 

Restores curve object from stream

VISU::Storable * VISU.Curve_i::Restore SALOMEDS::SObject_ptr  theSObject,
const std::string thePrefix,
const Storable::TRestoringMap theMap
[static]
 

Called from engine to restore curve from the file

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

Flushes curve data into stream

Implements VISU.Storable.

const char * VISU.Curve_i::GetComment  )  const [virtual]
 

Gets comment string

Implements VISU.Storable.

const char * VISU.Curve_i::GenerateName  )  [virtual]
 

Generate unique name

const char * VISU.Curve_i::GetTableID  )  [virtual]
 

Gets reference table's entry

virtual CORBA::Boolean VISU.Curve_i.IsAuto  )  [virtual]
 

CORBA::Boolean VISU.Curve_i::IsValid  )  [virtual]
 

Returns CORBA.True if curve refers to valid table data

string VISU.Curve_i::GetHorTitle  )  [virtual]
 

Returns hor.axis title

string VISU.Curve_i::GetVerTitle  )  [virtual]
 

Returns ver.axis title

string VISU.Curve_i::GetHorUnits  )  [virtual]
 

Returns hor.axis units

string VISU.Curve_i::GetVerUnits  )  [virtual]
 

Returns ver.axis units

int VISU.Curve_i::GetData double *&  theHorList,
double *&  theVerList
[virtual]
 

Gets curve data

SPlot2d_Curve * VISU.Curve_i::CreatePresentation  )  [virtual]
 

Creates curve Plot2d presentation object

virtual const char* VISU.PrsObject_i.GetName  )  const [virtual, inherited]
 

void VISU.PrsObject_i::SetName const char *  theName  )  [virtual, inherited]
 

const SALOMEDS::Study_var& VISU.PrsObject_i.GetStudyDocument  )  const [inherited]
 

QString VISU.PrsObject_i::GetEntry  )  [inherited]
 

string VISU.Storable::ToString  )  [inherited]
 

void VISU.Storable::Registry const char *  theComment,
TStorableEngine  theEngine
[static, inherited]
 

Storable * VISU.Storable::Create SALOMEDS::SObject_ptr  ,
const std::string thePrefix,
const std::string theString
[static, inherited]
 

QString VISU.Storable::FindValue const TRestoringMap theMap,
const std::string theArg,
bool *  isFind = NULL
[static, inherited]
 

QString VISU.Storable::FindValue const TRestoringMap theMap,
const std::string theArg,
const QString &  theDefaultValue
[static, inherited]
 

void VISU.Storable::StrToMap const QString &  theStr,
VISU::Storable::TRestoringMap theMap
[static, inherited]
 

static SALOMEDS::SObject_ptr VISU.Storable.GetResultSO SALOMEDS::SObject_ptr  theSObject  )  [static, inherited]
 

void VISU.Storable::DataToStream std::ostringstream &  theStr,
const QString &  theName,
const QString &  theVal
[static, inherited]
 

void VISU.Storable::DataToStream std::ostringstream &  theStr,
const QString &  theName,
const int  theVal
[static, inherited]
 

void VISU.Storable::DataToStream std::ostringstream &  theStr,
const QString &  theName,
const double  theVal
[static, inherited]
 

char * VISU.Base_i::GetID  )  [virtual, inherited]
 

Reimplemented in VISU.VISU_Gen_i, and VISU.VISU_Gen_i.

static CORBA::ORB_var VISU.Base_i.GetORB  )  [static, inherited]
 

static PortableServer::POA_var VISU.Base_i.GetPOA  )  [static, inherited]
 

static SALOME_NamingService* VISU.Base_i.GetNS  )  [static, inherited]
 

static SALOME_LifeCycleCORBA* VISU.Base_i.GetLCC  )  [static, inherited]
 

static VISU_Gen_i* VISU.Base_i.GetVisuGenImpl  )  [static, inherited]
 


Field Documentation

int VISU.Curve_i::myNbPresent = 0 [static, private]
 

Table_i* VISU.Curve_i.myTable [protected]
 

int VISU.Curve_i.myHRow [protected]
 

int VISU.Curve_i.myVRow [protected]
 

struct SALOMEDS::Color VISU.Curve_i.myColor [protected]
 

VISU::Curve::MarkerType VISU.Curve_i.myMarker [protected]
 

VISU::Curve::LineType VISU.Curve_i.myLine [protected]
 

int VISU.Curve_i.myLineWidth [protected]
 

std::string VISU.Curve_i.myTitle [protected]
 

bool VISU.Curve_i.myAuto [protected]
 

SALOMEDS::SObject_var VISU.Curve_i.mySObj [protected]
 

const string VISU.Curve_i::myComment = "CURVE" [static]
 

std::string VISU.PrsObject_i.myName [protected, inherited]
 

SALOMEDS::Study_var VISU.PrsObject_i.myStudy [protected, inherited]
 

std::string VISU.Base_i.myID [protected, inherited]
 

QMutex * VISU.Base_i::myMutex = NULL [static, protected, inherited]
 

CORBA::ORB_var VISU.Base_i::myOrb [static, protected, inherited]
 

PortableServer::POA_var VISU.Base_i::myPoa [static, protected, inherited]
 

SALOME_NamingService * VISU.Base_i::myNamingService [static, protected, inherited]
 

VISU_Gen_i * VISU.Base_i::myVisuGenImpl [static, protected, inherited]
 

SALOME_LifeCycleCORBA * VISU.Base_i::myEnginesLifeCycle [static, protected, inherited]