A scene-specific stream information object.
More...
#include <streamscene.hpp>
|
cmzn_streaminformation_id | id |
|
A scene-specific stream information object.
A scene-specific stream information object, used to specify one or more files/resources for a scene to write to, with attributes specified for them globally.
- See also
- Scene::createStreaminformationScene
Enumeration to indicate what the data should written out as.
Enumerator |
---|
IO_DATA_TYPE_INVALID |
Unspecified type
|
IO_DATA_TYPE_COLOUR |
Export data as colour
|
IO_DATA_TYPE_PER_VERTEX_VALUE |
Export data as field value on per vertex basis
|
IO_DATA_TYPE_PER_FACE_VALUE |
Export data as field value on per face basis
|
Enumeration of attributes that can be set by generic stream information region methods.
Enumerator |
---|
IO_FORMAT_INVALID |
Unspecified attribute
|
IO_FORMAT_THREEJS |
Export scene into ThreeJS compatible JSON file.
|
IO_FORMAT_DESCRIPTION |
Import/export scene configurations into the scene
|
cmzn_streaminformation_scene_id OpenCMISS::Zinc::StreaminformationScene::getDerivedId |
( |
| ) |
const |
|
inline |
double OpenCMISS::Zinc::StreaminformationScene::getFinishTime |
( |
| ) |
|
|
inline |
Get the last time step to export.
- Returns
- positive integer number on success, 0 on failure.
double OpenCMISS::Zinc::StreaminformationScene::getInitialTime |
( |
| ) |
|
|
inline |
Get the first time step to export.
- Returns
- positive integer number on success, 0 on failure.
int OpenCMISS::Zinc::StreaminformationScene::getNumberOfResourcesRequired |
( |
| ) |
|
|
inline |
Get the the number of resources required to fully export the scene. Some formats require more than 1 resource to fully export the scene, use this function to find the number of resources required.
- Returns
- positive integer number on success, 0 on failure.
int OpenCMISS::Zinc::StreaminformationScene::getNumberOfTimeSteps |
( |
| ) |
|
|
inline |
Get the number of time steps to export.
- Returns
- positive integer number on success, 0 on failure.
int OpenCMISS::Zinc::StreaminformationScene::getOutputTimeDependentColours |
( |
| ) |
|
|
inline |
Get the flag which specifies colours should be output for each time step; The default value is 0;
- Returns
- 1 if colours are set to be output for each time step, otherwise 0.
int OpenCMISS::Zinc::StreaminformationScene::getOutputTimeDependentNormals |
( |
| ) |
|
|
inline |
Get the flag which specifies normals should be output for each time step; The default value is 0;
- Returns
- 1 if normals are set to be output for each time step, otherwise 0.
int OpenCMISS::Zinc::StreaminformationScene::getOutputTimeDependentVertices |
( |
| ) |
|
|
inline |
Get the flag which specifies vertices should be output for each time step; The default value is 1;
- Returns
- 1 if vertices are set to be output for each time step, otherwise 0.
Scenefilter OpenCMISS::Zinc::StreaminformationScene::getScenefilter |
( |
| ) |
|
|
inline |
Return the scenefilter that is set for this streaminformation
- Returns
- Handle to scene filter, or NULL/invalid handle if none or failed.
bool OpenCMISS::Zinc::StreaminformationScene::isValid |
( |
| ) |
const |
|
inline |
Check if this is a valid StreaminformationScene object.
- Returns
- Status True if object is valid, false otherwise.
int OpenCMISS::Zinc::StreaminformationScene::setFinishTime |
( |
double |
finishTime | ) |
|
|
inline |
Set the last time step to export.
- Parameters
-
finishTime | last time step to be set for export. |
- Returns
- Status OpenCMISS::Zinc::OK on success, any other value on failure.
int OpenCMISS::Zinc::StreaminformationScene::setInitialTime |
( |
double |
initialTime | ) |
|
|
inline |
Set the first time step to export.
- Parameters
-
initialTime | first time step to be set for export. |
- Returns
- Status OpenCMISS::Zinc::OK on success, any other value on failure.
int OpenCMISS::Zinc::StreaminformationScene::setNumberOfTimeSteps |
( |
int |
numberOfTimeSteps | ) |
|
|
inline |
Set the number of time steps to export. This value along with finish time and initial time will determine at which time steps the graphics will be export. If initial time = 0.0, finish time = 1.0 and number of time steps = 11; graphics will be export at 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9 and 1.0.
- See also
- StreaminformationScene::setFinishTime
-
StreaminformationScene::setInitialTime
- Parameters
-
numberOfTimeSteps | number of time steps to be set for export. |
- Returns
- Status OpenCMISS::Zinc::OK on success, any other value on failure.
int OpenCMISS::Zinc::StreaminformationScene::setOutputTimeDependentColours |
( |
int |
outputTimeDependentColours | ) |
|
|
inline |
Set the flag which specifies colours should be output for each time step; If this flag is set to 1, colours will be output at times determined by initial_time, finish_time and number_of_time_steps set by the caller. The default value is 0;
- Parameters
-
outputTimeDependentColours | value to be assigned to the flag. |
- Returns
- Status OpenCMISS::Zinc::OK on success, any other value on failure.
int OpenCMISS::Zinc::StreaminformationScene::setOutputTimeDependentNormals |
( |
int |
outputTimeDependentNormals | ) |
|
|
inline |
Set the flag which specifies normals should be output for each time step; If this flag is set to 1, normals will be output at times determined by initial_time, finish_time and number_of_time_steps set by the caller. The default value is 0;
- Parameters
-
outputTimeDependentNormals | value to be assigned to the flag. |
- Returns
- Status OpenCMISS::Zinc::OK on success, any other value on failure.
int OpenCMISS::Zinc::StreaminformationScene::setOutputTimeDependentVertices |
( |
int |
outputTimeDependentVertices | ) |
|
|
inline |
Set the flag which specifies vertices should be output for each time step; If this flag is set to 1, vertices will be output at times determined by initial_time, finish_time and number_of_time_steps set by the caller. The default value is 1;
- Parameters
-
outputTimeDependentVertices | value to be assigned to the flag. |
- Returns
- Status OpenCMISS::Zinc::OK on success, any other value on failure.
int OpenCMISS::Zinc::StreaminformationScene::setOverwriteSceneGraphics |
( |
int |
overwrite | ) |
|
|
inline |
Set a flag which determines graphics should be removed before new graphics settings are imported into scene.
- Parameters
-
overwrite | flag to indicate either graphics should be overwrite. |
- Returns
- Status OpenCMISS::Zinc::OK on success, any other value on failure.
int OpenCMISS::Zinc::StreaminformationScene::setScenefilter |
( |
const Scenefilter & |
scenefilter | ) |
|
|
inline |
Set the scenefilter for the streaminformation_scene. This filter determines which graphics are included in the export.
- Parameters
-
scenefilter | The scene filter to use, or NULL if none (all enable). |
- Returns
- Status OpenCMISS::Zinc::OK on success, any other value on failure.
The documentation for this class was generated from the following file: