Version: 6.3.1
Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | Static Private Attributes

VISU_TimeAnimation Class Reference

#include <VISU_TimeAnimation.h>

Inheritance diagram for VISU_TimeAnimation:
Inheritance graph

Public Types

enum  DumpMode { DM_None = 0, DM_Picture, DM_Video }

Public Slots

void setProportionalSlot (bool theProp)
void setCyclingSlot (bool theCycle)
void setCleaningMemoryAtEachFrameSlot (bool theCycle)

Signals

void frameChanged (long theNewFrame, double theTime)
void stopped ()

Public Member Functions

 VISU_TimeAnimation (_PTR(Study) theStudy, VISU::View3D_ptr theView3D=VISU::View3D::_nil())
 ~VISU_TimeAnimation ()
virtual VISU::VISUType GetType ()
bool addField (_PTR(SObject) theField)
bool addField (SALOMEDS::SObject_ptr theField)
FieldDatagetFieldData (int theNum)
CORBA::Boolean generateFrames ()
void generatePresentations (CORBA::Long theFieldNum)
void setViewer (SVTK_ViewWindow *theView)
SVTK_ViewWindow * getViewer ()
void clearView ()
void clearData (FieldData &theData)
void clearFieldData ()
void visibilityOff (int num_field, int num_frame)
void stopAnimation ()
void startAnimation ()
void nextFrame ()
void prevFrame ()
void firstFrame ()
void lastFrame ()
void gotoFrame (CORBA::Long theFrame)
CORBA::Long getNbFields ()
CORBA::Long getNbFrames ()
CORBA::Long getCurrentFrame ()
long getAbsoluteFrameNumber (std::pair< int, long > theFieldTimeStamp)
std::pair< int, long > getRelativeFrameNumber (long theFrame)
VISU::ColoredPrs3d_ptr getPresentation (CORBA::Long theField, CORBA::Long theFrame)
void setPresentationType (CORBA::Long theFieldNum, VISU::VISUType theType)
VISU::VISUType getPresentationType (CORBA::Long theFieldNum)
void setSpeed (CORBA::Long theSpeed)
CORBA::Long getSpeed ()
CORBA::Boolean isProportional ()
void setAnimationRange (CORBA::Double theMin, CORBA::Double theMax)
CORBA::Double getMinRange ()
CORBA::Double getMaxRange ()
CORBA::Boolean isRangeDefined ()
void setAnimationSequence (const char *theSequence)
char * getAnimationSequence ()
CORBA::Boolean isSequenceDefined ()
bool getIndicesFromSequence (QString theSequence, QList< long > &theIndices)
void dumpTo (const char *thePath)
std::string setDumpFormat (const char *theFormat)
void setTimeStampFrequency (CORBA::Long theFrequency)
CORBA::Long getTimeStampFrequency ()
int getDumpMode () const
bool checkAVIMaker () const
QString getLastErrorMsg ()
CORBA::Boolean isCycling ()
CORBA::Boolean isCleaningMemoryAtEachFrame ()
CORBA::Double getMinTime ()
CORBA::Double getMaxTime ()
void setProportional (CORBA::Boolean theProp)
void setCycling (CORBA::Boolean theCycle)
void setCleaningMemoryAtEachFrame (CORBA::Boolean theCycle)
SALOMEDS::SObject_ptr publishInStudy ()
void restoreFromStudy (SALOMEDS::SObject_ptr theField)
void restoreFromStudy (_PTR(SObject) theField)
void saveAnimation ()
bool isSavedInStudy () const
 _PTR (Study) getStudy() const
void setAnimationMode (VISU::Animation::AnimationMode theMode)
VISU::Animation::AnimationMode getAnimationMode ()
void ApplyProperties (CORBA::Long theFieldNum, VISU::ColoredPrs3d_ptr thePrs) throw (SALOME::SALOME_Exception)

Static Public Member Functions

static VISU::Result_icreatePresent (_PTR(SObject) theField)
static double getTimeValue (_PTR(SObject) theTimestamp)

Protected Member Functions

CORBA::Boolean _generateFrames ()
void _connectView ()
void _visibilityOff (int num_field, int num_frame)
void _clearView ()
void _clearData (FieldData &theData)
void _startAnimation ()
void _nextFrame ()
void _prevFrame ()
void _firstFrame ()
void _lastFrame ()
void _gotoFrame (CORBA::Long theFrame)
void _emitFrameChanged (long theNewFrame, double theTime)
void _emitStopped ()
void parallelAnimation (bool &theIsDumping, QList< int > &theIndexList)
void successiveAnimation (bool &theIsDumping, QList< int > &theIndexList)
void saveImages (int theFieldId, double &theOneVal, int &theNbFiles, QList< int > &theIndexList)
void run ()
QString GenerateName ()

Private Slots

void onViewDeleted ()

Private Member Functions

 _PTR (Study) myStudy

Private Attributes

QString myLastError
QList< FieldDatamyFieldsLst
VISU::ExecutionStatemyExecutionState
long myFrame
std::vector< long > myFieldsAbsFrames
int mySpeed
bool myProportional
bool myCycling
bool myCleaningMemoryAtEachFrame
VISU::DumpPathmyDumpPath
VISU::Animation::AnimationMode myAnimationMode
double myTimeMinVal
double myTimeMaxVal
 Range of time stams, set by user.
double myTimeMin
double myTimeMax
 Range of time stams, available for animation.
QString mySequence
QString myDumpFormat
QString myAVIMaker
long myFileIndex
SVTK_ViewWindow * myView
int myDumpMode
int myTimeStampFrequency
QString myAnimEntry

Static Private Attributes

static int myNBAnimations = 0

Member Enumeration Documentation

Enumerator:
DM_None 
DM_Picture 
DM_Video 

Constructor & Destructor Documentation

VISU_TimeAnimation::VISU_TimeAnimation ( _PTR(Study)  theStudy,
VISU::View3D_ptr  theView3D = VISU::View3D::_nil() 
)
VISU_TimeAnimation::~VISU_TimeAnimation ( )

Member Function Documentation

CORBA::Boolean VISU_TimeAnimation::_generateFrames ( ) [protected]
void VISU_TimeAnimation::_connectView ( ) [protected]
void VISU_TimeAnimation::_visibilityOff ( int  num_field,
int  num_frame 
) [protected]
void VISU_TimeAnimation::_clearView ( ) [protected]
void VISU_TimeAnimation::_clearData ( FieldData theData) [protected]
void VISU_TimeAnimation::_startAnimation ( ) [protected]
void VISU_TimeAnimation::_nextFrame ( ) [protected]
void VISU_TimeAnimation::_prevFrame ( ) [protected]
void VISU_TimeAnimation::_firstFrame ( ) [protected]
void VISU_TimeAnimation::_lastFrame ( ) [protected]
void VISU_TimeAnimation::_gotoFrame ( CORBA::Long  theFrame) [protected]
void VISU_TimeAnimation::_emitFrameChanged ( long  theNewFrame,
double  theTime 
) [protected]
void VISU_TimeAnimation::_emitStopped ( ) [protected]
void VISU_TimeAnimation::parallelAnimation ( bool &  theIsDumping,
QList< int > &  theIndexList 
) [protected]
void VISU_TimeAnimation::successiveAnimation ( bool &  theIsDumping,
QList< int > &  theIndexList 
) [protected]
void VISU_TimeAnimation::saveImages ( int  theFieldId,
double &  theOneVal,
int &  theNbFiles,
QList< int > &  theIndexList 
) [protected]
VISU::Result_i * VISU_TimeAnimation::createPresent ( _PTR(SObject)  theField) [static]
double VISU_TimeAnimation::getTimeValue ( _PTR(SObject)  theTimestamp) [static]
virtual VISU::VISUType VISU_TimeAnimation.GetType ( ) [virtual]

References VISU.TNONE.

bool VISU_TimeAnimation::addField ( _PTR(SObject)  theField)
bool VISU_TimeAnimation::addField ( SALOMEDS::SObject_ptr  theField)

References _PTR(), and visu_big_table.myStudy.

FieldData& VISU_TimeAnimation.getFieldData ( int  theNum)
CORBA::Boolean VISU_TimeAnimation::generateFrames ( )

References _generateFrames().

void VISU_TimeAnimation::generatePresentations ( CORBA::Long  theFieldNum)
void VISU_TimeAnimation.setViewer ( SVTK_ViewWindow *  theView)
SVTK_ViewWindow* VISU_TimeAnimation.getViewer ( )
void VISU_TimeAnimation::clearView ( )

References _clearView().

void VISU_TimeAnimation::clearData ( FieldData theData)

References _clearData().

void VISU_TimeAnimation.clearFieldData ( )
void VISU_TimeAnimation::visibilityOff ( int  num_field,
int  num_frame 
)

References _visibilityOff().

void VISU_TimeAnimation::stopAnimation ( )
void VISU_TimeAnimation::startAnimation ( )

References _startAnimation().

void VISU_TimeAnimation::nextFrame ( )

References _nextFrame().

void VISU_TimeAnimation::prevFrame ( )

References _prevFrame().

void VISU_TimeAnimation::firstFrame ( )

References _firstFrame().

void VISU_TimeAnimation::lastFrame ( )

References _lastFrame().

void VISU_TimeAnimation::gotoFrame ( CORBA::Long  theFrame)

References _gotoFrame().

CORBA::Long VISU_TimeAnimation.getNbFields ( )
CORBA::Long VISU_TimeAnimation::getNbFrames ( )
CORBA::Long VISU_TimeAnimation.getCurrentFrame ( )
long VISU_TimeAnimation::getAbsoluteFrameNumber ( std::pair< int, long >  theFieldTimeStamp)
std::pair< int, long > VISU_TimeAnimation::getRelativeFrameNumber ( long  theFrame)
VISU::ColoredPrs3d_ptr VISU_TimeAnimation::getPresentation ( CORBA::Long  theField,
CORBA::Long  theFrame 
)
void VISU_TimeAnimation::setPresentationType ( CORBA::Long  theFieldNum,
VISU::VISUType  theType 
)
VISU::VISUType VISU_TimeAnimation::getPresentationType ( CORBA::Long  theFieldNum)

References VISU.TNONE.

void VISU_TimeAnimation::setSpeed ( CORBA::Long  theSpeed)
CORBA::Long VISU_TimeAnimation.getSpeed ( )
CORBA::Boolean VISU_TimeAnimation.isProportional ( )
void VISU_TimeAnimation.setAnimationRange ( CORBA::Double  theMin,
CORBA::Double  theMax 
)
CORBA::Double VISU_TimeAnimation.getMinRange ( )
CORBA::Double VISU_TimeAnimation.getMaxRange ( )
CORBA::Boolean VISU_TimeAnimation.isRangeDefined ( )
void VISU_TimeAnimation::setAnimationSequence ( const char *  theSequence)
char * VISU_TimeAnimation::getAnimationSequence ( )
CORBA::Boolean VISU_TimeAnimation::isSequenceDefined ( )
bool VISU_TimeAnimation::getIndicesFromSequence ( QString  theSequence,
QList< long > &  theIndices 
)
void VISU_TimeAnimation::dumpTo ( const char *  thePath)
std::string VISU_TimeAnimation::setDumpFormat ( const char *  theFormat)
void VISU_TimeAnimation::setTimeStampFrequency ( CORBA::Long  theFrequency)
CORBA::Long VISU_TimeAnimation.getTimeStampFrequency ( )
int VISU_TimeAnimation.getDumpMode ( ) const
bool VISU_TimeAnimation::checkAVIMaker ( ) const
QString VISU_TimeAnimation.getLastErrorMsg ( )
CORBA::Boolean VISU_TimeAnimation.isCycling ( )
CORBA::Boolean VISU_TimeAnimation.isCleaningMemoryAtEachFrame ( )
CORBA::Double VISU_TimeAnimation.getMinTime ( )
CORBA::Double VISU_TimeAnimation.getMaxTime ( )
void VISU_TimeAnimation.setProportional ( CORBA::Boolean  theProp)
void VISU_TimeAnimation.setCycling ( CORBA::Boolean  theCycle)
void VISU_TimeAnimation.setCleaningMemoryAtEachFrame ( CORBA::Boolean  theCycle)
SALOMEDS::SObject_ptr VISU_TimeAnimation::publishInStudy ( )
void VISU_TimeAnimation::restoreFromStudy ( SALOMEDS::SObject_ptr  theField)

References _PTR(), and visu_big_table.myStudy.

void VISU_TimeAnimation::restoreFromStudy ( _PTR(SObject)  theField)
void VISU_TimeAnimation::saveAnimation ( )
bool VISU_TimeAnimation.isSavedInStudy ( ) const
VISU_TimeAnimation._PTR ( Study  ) const
void VISU_TimeAnimation.setAnimationMode ( VISU::Animation::AnimationMode  theMode)
VISU::Animation::AnimationMode VISU_TimeAnimation.getAnimationMode ( )
void VISU_TimeAnimation::ApplyProperties ( CORBA::Long  theFieldNum,
VISU::ColoredPrs3d_ptr  thePrs 
) throw (SALOME::SALOME_Exception)
void VISU_TimeAnimation.setProportionalSlot ( bool  theProp) [slot]
void VISU_TimeAnimation.setCyclingSlot ( bool  theCycle) [slot]
void VISU_TimeAnimation.setCleaningMemoryAtEachFrameSlot ( bool  theCycle) [slot]
void VISU_TimeAnimation.frameChanged ( long  theNewFrame,
double  theTime 
) [signal]
void VISU_TimeAnimation.stopped ( ) [signal]
void VISU_TimeAnimation::run ( ) [protected]
QString VISU_TimeAnimation::GenerateName ( ) [protected]

References VISU.GenerateName().

void VISU_TimeAnimation::onViewDeleted ( ) [private, slot]
VISU_TimeAnimation._PTR ( Study  ) [private]

Field Documentation

QString VISU_TimeAnimation.myLastError [private]
std::vector<long> VISU_TimeAnimation.myFieldsAbsFrames [private]
double VISU_TimeAnimation.myTimeMin [private]
double VISU_TimeAnimation.myTimeMax [private]
QString VISU_TimeAnimation.mySequence [private]
QString VISU_TimeAnimation.myAVIMaker [private]
SVTK_ViewWindow* VISU_TimeAnimation.myView [private]
QString VISU_TimeAnimation.myAnimEntry [private]
int VISU_TimeAnimation::myNBAnimations = 0 [static, private]
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