cee::imp::cae::DataSourcePhaseResponse Class Reference

A phase response data source for an unstructured grid model. More...

Public Member Functions

 DataSourcePhaseResponse (int id, const DataSourceCae *sourceDataSource, int frequencyStateId, size_t numSteps)
 Create a phase response data source. More...
 
bool build ()
 Build the data source by linearly combining states of the source UnstructGridModel. More...
 
- Public Member Functions inherited from cee::ug::DataSourceMemory
 DataSourceMemory (int dataSourceId, size_t geometryCountPerState)
 Constructs a memory data source. More...
 
size_t geometryCountPerState () const
 Returns number of geometries per state. More...
 
bool updateDerivedResult (ResultType resultType, int id)
 Updates the derived result. More...
 
bool updateAllDerivedResults ()
 Updates all derived results. More...
 
void addState (DataState *state)
 Adds a new state to the data source. More...
 
void removeAllStates ()
 Removes all states in the data source. More...
 
void updateDirectoryFromStates ()
 Populates the directory with dummy data. More...
 
- Public Member Functions inherited from cee::ug::DataSource
int id () const
 Returns the id of the data source. More...
 
size_t stateCount () const
 Returns number of states for the data source. More...
 
size_t stateIndex (int stateId) const
 Returns the index of the state with id stateId. More...
 
size_t geometryCountPerState () const
 Returns the number of geometries (per state) in the Datasource. More...
 
const DataStatestate (size_t stateIndex) const
 Returns the state at the given state index. More...
 
DataStatestate (size_t stateIndex)
 Returns the state at the given state index. More...
 
const DataStatecurrentState (const UnstructGridModel *model) const
 Returns the current state (the state in the current frame) in the given model. More...
 
DataStatecurrentState (const UnstructGridModel *model)
 Returns the current state (the state in the current frame) in the given model. More...
 
const DataSourceDirectorydirectory () const
 Returns the data directory of the data source. More...
 
DataSourceDirectorydirectory ()
 Returns the data directory of the data source. More...
 
const DataElementSetelementSet (size_t setIndex) const
 Returns a const ptr to the element set at the given index. More...
 
DataElementSetelementSet (size_t setIndex)
 Returns the element set at the given index. More...
 
size_t elementSetCount () const
 Returns the number of DataElementSets in this data source. More...
 
size_t elementSetIndex (int setId) const
 Returns the index of the element set with the given id. More...
 
void addElementSet (DataElementSet *elementSet)
 Adds an element set to this data source. More...
 
void removeElementSet (const DataElementSet *elementSet)
 Removes an element set from this data source. More...
 
void removeAllElementSets ()
 Removes all element sets from the data source. More...
 
bool isDataSourceValid (Str *failReason) const
 Validates that the data source contents matches the metadata. More...
 
int defaultDispacementResultId () const
 Returns the current state (the state in the current frame) in the given model. More...
 
bool computeCustomResults (int stateId, const DataStateSpec &stateSpec)
 Computes custom results. More...
 
- Public Member Functions inherited from cee::RefCountedObject
void addRef () const
 Increments the reference count for this object. More...
 
void release () const
 Decrements the reference count for this object. More...
 
int refCount () const
 Returns the reference count for this object. More...
 
void setRefCountZero () const
 Sets the ref count to zero, but DOES NOT delete the object. More...
 
Inheritance diagram for cee::imp::cae::DataSourcePhaseResponse:
cee::ug::DataSourceMemory cee::ug::DataSource cee::RefCountedObject

Detailed Description

A phase response data source for an unstructured grid model.

Constructor & Destructor Documentation

cee::imp::cae::DataSourcePhaseResponse::DataSourcePhaseResponse ( int  id,
const DataSourceCae sourceDataSource,
int  frequencyStateId,
size_t  numSteps 
)

Create a phase response data source.

Specify a unique id for the merged data source.

Member Function Documentation

bool cee::imp::cae::DataSourcePhaseResponse::build ( )

Build the data source by linearly combining states of the source UnstructGridModel.