A region-specific stream information object.
More...
#include <streamregion.hpp>
|
cmzn_streaminformation_id | id |
|
A region-specific stream information object.
A region-specific stream information object, used to specify one or more model files/resources for a region to read from or write to, with attributes specified for them either globally or per-resource.
- See Also
- Region::createStreaminformationRegion
Enumeration of attributes that can be set by generic stream information region methods.
Enumerator |
---|
ATTRIBUTE_INVALID |
Unspecified attribute
|
ATTRIBUTE_TIME |
Attribute used to specify at what time the stream resource(s) to be reading in or writing to.
|
double OpenCMISS::Zinc::StreaminformationRegion::getAttributeReal |
( |
Attribute |
attribute | ) |
|
|
inline |
Get a real value of an attribute of streaminformation.
- Parameters
-
attribute | The identifier of the real attribute to get. |
- Returns
- Value of the attribute.
cmzn_streaminformation_region_id OpenCMISS::Zinc::StreaminformationRegion::getId |
( |
| ) |
const |
|
inline |
double OpenCMISS::Zinc::StreaminformationRegion::getResourceAttributeReal |
( |
const Streamresource & |
resource, |
|
|
Attribute |
attribute |
|
) |
| |
|
inline |
Get a real value of an attribute of a stream in streaminformation.
- Parameters
-
resource | Handle to the stream resource. |
attribute | The identifier of the real attribute to get. |
- Returns
- Value of the attribute.
Get the specified domain types for a stream resource in streaminformation.
- Parameters
-
resource | Handle to the stream resource. |
- Returns
- Bitmasks for specified domain types for stream resource, CMZN_FIELD_DOMAIN_TYPE_INVALID if failed or unset
int OpenCMISS::Zinc::StreaminformationRegion::hasAttribute |
( |
Attribute |
attribute | ) |
|
|
inline |
Check either an attribute of streaminformation has been set or not.
- Parameters
-
attribute | The identifier of the real attribute to get. |
- Returns
- 1 if attribute has been set.
int OpenCMISS::Zinc::StreaminformationRegion::hasResourceAttribute |
( |
const Streamresource & |
resource, |
|
|
Attribute |
attribute |
|
) |
| |
|
inline |
Check either an attribute of a stream in streaminformation has been set or not.
- Parameters
-
resource | Handle to the stream resource. |
attribute | The identifier of the real attribute to get. |
- Returns
- 1 if attribute has been set.
bool OpenCMISS::Zinc::StreaminformationRegion::isValid |
( |
| ) |
const |
|
inline |
int OpenCMISS::Zinc::StreaminformationRegion::setAttributeReal |
( |
Attribute |
attribute, |
|
|
double |
value |
|
) |
| |
|
inline |
Set a double attribute of the region stream information valid for all resources unless overridden for individual resources.
- Parameters
-
attribute | The identifier of the double attribute to set. |
value | The new value for the attribute. |
- Returns
- status OpenCMISS::Zinc::OK if attribute successfully set, any other value if failed or attribute not valid or unable to be set for this cmzn_streaminformation_region.
int OpenCMISS::Zinc::StreaminformationRegion::setResourceAttributeReal |
( |
const Streamresource & |
resource, |
|
|
Attribute |
attribute, |
|
|
double |
value |
|
) |
| |
|
inline |
Set a double attribute for a resource in the region stream information.
- Parameters
-
resource | Handle to the stream resource. |
attribute | The identifier of the double attribute to set. |
value | The new value for the attribute. |
- Returns
- status OpenCMISS::Zinc::OK if attribute successfully set, any other value if failed or attribute not valid or unable to be set for this cmzn_streaminformation_region.
Set the domain types to be exported from the region this stream information is created in. The current default setting will output all domain types in region. On import, the domain type also specifies nodesets without a specified domain type in exformat file to be imported as nodes or datapoints domain. If unset, unspecified nodesets will be imported as nodes.
- Parameters
-
resource | Handle to the stream resource. |
domainTypes | Bitmasks for the domain type to be set for output. It currently supports the following domains: CMZN_FIELD_DOMAIN_TYPE_POINT - Only output the region name if this is the only bit set CMZN_FIELD_DOMAIN_TYPE_NODES - Enable output of nodes CMZN_FIELD_DOMAIN_TYPE_DATAPOINTS - Enable output of datapoints CMZN_FIELD_DOMAIN_TYPE_MESH1D - Enable output of 1D mesh CMZN_FIELD_DOMAIN_TYPE_MESH2D - Enable output of 2D mesh CMZN_FIELD_DOMAIN_TYPE_MESH3D - Enable output of 3D mesh CMZN_FIELD_DOMAIN_TYPE_MESH_HIGHEST_DIMENSION - Enable output of mesh with highest dimension possible |
- Returns
- status OpenCMISS::Zinc::OK if domain types successfully set, any other value if failed or domain type not valid or unable to be set for this cmzn_streaminformation_region.
The documentation for this class was generated from the following file: