9 #ifndef CMZN_FIELDIMAGE_HPP__ 10 #define CMZN_FIELDIMAGE_HPP__ 12 #include "opencmiss/zinc/fieldimage.h" 13 #include "opencmiss/zinc/field.hpp" 14 #include "opencmiss/zinc/fieldmodule.hpp" 21 class StreaminformationImage;
40 inline cmzn_field_image_id getDerivedId()
42 return reinterpret_cast<cmzn_field_image_id
>(id);
51 explicit FieldImage(cmzn_field_image_id field_image_id) :
52 Field(reinterpret_cast<cmzn_field_id>(field_image_id))
220 return cmzn_field_image_get_width_in_pixels(getDerivedId());
230 return cmzn_field_image_get_height_in_pixels(getDerivedId());
240 return cmzn_field_image_get_depth_in_pixels(getDerivedId());
254 return cmzn_field_image_get_size_in_pixels(getDerivedId(), valuesCount, valuesOut);
272 return cmzn_field_image_set_size_in_pixels(getDerivedId(), valuesCount, valuesIn);
282 return cmzn_field_image_get_texture_coordinate_width(getDerivedId());
292 return cmzn_field_image_get_texture_coordinate_height(getDerivedId());
302 return cmzn_field_image_get_texture_coordinate_depth(getDerivedId());
316 return cmzn_field_image_get_texture_coordinate_sizes(getDerivedId(), valuesCount,
329 return cmzn_field_image_set_texture_coordinate_width(getDerivedId(), width);
341 return cmzn_field_image_set_texture_coordinate_height(getDerivedId(), height);
353 return cmzn_field_image_set_texture_coordinate_depth(getDerivedId(), depth);
367 return cmzn_field_image_set_texture_coordinate_sizes(getDerivedId(),
368 valuesCount, valuesIn);
399 return cmzn_field_image_read_file(getDerivedId(), fileName);
430 return static_cast<CombineMode>(cmzn_field_image_get_combine_mode(getDerivedId()));
442 return cmzn_field_image_set_combine_mode(getDerivedId(),
443 static_cast<cmzn_field_image_combine_mode>(combineMode));
455 return Field(cmzn_field_image_get_domain_field(getDerivedId()));
469 return cmzn_field_image_set_domain_field(getDerivedId(), domainField.
getId());
480 cmzn_field_image_get_hardware_compression_mode(getDerivedId()));
493 return cmzn_field_image_set_hardware_compression_mode(getDerivedId(),
494 static_cast<cmzn_field_image_hardware_compression_mode>(hardwareCompressionMode));
504 return static_cast<FilterMode>(cmzn_field_image_get_filter_mode(getDerivedId()));
517 return cmzn_field_image_set_filter_mode(getDerivedId(),
518 static_cast<cmzn_field_image_filter_mode>(filterMode));
528 return static_cast<WrapMode>(cmzn_field_image_get_wrap_mode(getDerivedId()));
540 return cmzn_field_image_set_wrap_mode(getDerivedId(),
541 static_cast<cmzn_field_image_wrap_mode>(wrapMode));
555 return cmzn_field_image_get_property(getDerivedId(), property);
570 return FieldImage(reinterpret_cast<cmzn_field_image_id>(
571 cmzn_fieldmodule_create_field_image(
id)));
576 return FieldImage(reinterpret_cast<cmzn_field_image_id>(
577 cmzn_fieldmodule_create_field_image_from_source(
id, sourceField.
getId())));
int setTextureCoordinateHeight(double height)
Definition: fieldimage.hpp:339
Definition: fieldimage.hpp:87
Field getDomainField()
Definition: fieldimage.hpp:453
int write(const StreaminformationImage &streaminformationImage)
Definition: streamimage.hpp:228
Definition: fieldimage.hpp:116
int read(const StreaminformationImage &streaminformationImage)
Definition: streamimage.hpp:223
HardwareCompressionMode getHardwareCompressionMode()
Definition: fieldimage.hpp:477
Base field type: an abstraction of a mathematical field.
Definition: field.hpp:51
Definition: fieldimage.hpp:164
double getTextureCoordinateHeight()
Definition: fieldimage.hpp:290
double getTextureCoordinateWidth()
Definition: fieldimage.hpp:280
int setTextureCoordinateDepth(double depth)
Definition: fieldimage.hpp:351
WrapMode getWrapMode()
Definition: fieldimage.hpp:526
Definition: fieldimage.hpp:81
Definition: fieldimage.hpp:132
FieldImage castImage()
Definition: fieldimage.hpp:580
Definition: fieldimage.hpp:121
Definition: fieldimage.hpp:67
Definition: fieldimage.hpp:148
int setHardwareCompressionMode(HardwareCompressionMode hardwareCompressionMode)
Definition: fieldimage.hpp:491
Definition: fieldimage.hpp:194
int setTextureCoordinateSizes(int valuesCount, const double *valuesIn)
Definition: fieldimage.hpp:365
FieldImage createFieldImageFromSource(const Field &sourceField)
Definition: fieldimage.hpp:574
char * getProperty(const char *property)
Definition: fieldimage.hpp:553
Definition: fieldimage.hpp:160
Definition: fieldimage.hpp:156
Definition: fieldimage.hpp:105
Definition: fieldimage.hpp:65
FieldImage createFieldImage()
Definition: fieldimage.hpp:568
cmzn_field_id getId() const
Definition: field.hpp:103
int getWidthInPixels()
Definition: fieldimage.hpp:218
An image-based field giving the pixel colour/intensity values.
Definition: fieldimage.hpp:31
Definition: fieldimage.hpp:196
int setCombineMode(CombineMode combineMode)
Definition: fieldimage.hpp:440
Definition: fieldimage.hpp:183
Definition: fieldimage.hpp:178
Definition: fieldimage.hpp:110
Definition: fieldimage.hpp:202
HardwareCompressionMode
Definition: fieldimage.hpp:176
int setDomainField(const Field &domainField)
Definition: fieldimage.hpp:467
int setFilterMode(FilterMode filterMode)
Definition: fieldimage.hpp:515
int getDepthInPixels()
Definition: fieldimage.hpp:238
int setSizeInPixels(int valuesCount, const int *valuesIn)
Definition: fieldimage.hpp:270
CombineMode
Definition: fieldimage.hpp:63
Definition: fieldimage.hpp:207
FilterMode
Definition: fieldimage.hpp:144
int getHeightInPixels()
Definition: fieldimage.hpp:228
int setWrapMode(WrapMode wrapMode)
Definition: fieldimage.hpp:538
Definition: fieldimage.hpp:152
int readFile(const char *fileName)
Definition: fieldimage.hpp:397
Definition: fieldimage.hpp:126
Definition: fieldimage.hpp:146
StreaminformationImage createStreaminformationImage()
Definition: streamimage.hpp:216
Definition: fieldimage.hpp:72
The OpenCMISS namespace.
Definition: context.hpp:20
int setTextureCoordinateWidth(double width)
Definition: fieldimage.hpp:327
int getSizeInPixels(int valuesCount, int *valuesOut)
Definition: fieldimage.hpp:252
int getTextureCoordinateSizes(int valuesCount, double *valuesOut)
Definition: fieldimage.hpp:314
Definition: fieldimage.hpp:180
Definition: fieldimage.hpp:198
Definition: fieldimage.hpp:93
Definition: fieldimage.hpp:99
CombineMode getCombineMode()
Definition: fieldimage.hpp:428
double getTextureCoordinateDepth()
Definition: fieldimage.hpp:300
Definition: fieldimage.hpp:205
WrapMode
Definition: fieldimage.hpp:192
FilterMode getFilterMode()
Definition: fieldimage.hpp:502