9 #ifndef CMZN_FIELDIMAGE_HPP__
10 #define CMZN_FIELDIMAGE_HPP__
12 #include "zinc/fieldimage.h"
13 #include "zinc/field.hpp"
14 #include "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());
255 return cmzn_field_image_get_size_in_pixels(getDerivedId(), valuesCount, valuesOut);
265 return cmzn_field_image_get_texture_coordinate_width(getDerivedId());
275 return cmzn_field_image_get_texture_coordinate_height(getDerivedId());
285 return cmzn_field_image_get_texture_coordinate_depth(getDerivedId());
299 return cmzn_field_image_get_texture_coordinate_sizes(getDerivedId(), valuesCount,
312 return cmzn_field_image_set_texture_coordinate_width(getDerivedId(), width);
324 return cmzn_field_image_set_texture_coordinate_height(getDerivedId(), height);
336 return cmzn_field_image_set_texture_coordinate_depth(getDerivedId(), depth);
350 return cmzn_field_image_set_texture_coordinate_sizes(getDerivedId(),
351 valuesCount, valuesIn);
382 return cmzn_field_image_read_file(getDerivedId(), fileName);
413 return static_cast<CombineMode>(cmzn_field_image_get_combine_mode(getDerivedId()));
425 return cmzn_field_image_set_combine_mode(getDerivedId(),
426 static_cast<cmzn_field_image_combine_mode>(combineMode));
438 return Field(cmzn_field_image_get_domain_field(getDerivedId()));
452 return cmzn_field_image_set_domain_field(getDerivedId(), domainField.
getId());
463 cmzn_field_image_get_hardware_compression_mode(getDerivedId()));
476 return cmzn_field_image_set_hardware_compression_mode(getDerivedId(),
477 static_cast<cmzn_field_image_hardware_compression_mode>(hardwareCompressionMode));
487 return static_cast<FilterMode>(cmzn_field_image_get_filter_mode(getDerivedId()));
500 return cmzn_field_image_set_filter_mode(getDerivedId(),
501 static_cast<cmzn_field_image_filter_mode>(filterMode));
511 return static_cast<WrapMode>(cmzn_field_image_get_wrap_mode(getDerivedId()));
523 return cmzn_field_image_set_wrap_mode(getDerivedId(),
524 static_cast<cmzn_field_image_wrap_mode>(wrapMode));
538 return cmzn_field_image_get_property(getDerivedId(), property);
553 return FieldImage(reinterpret_cast<cmzn_field_image_id>(
554 cmzn_fieldmodule_create_field_image(
id)));
559 return FieldImage(reinterpret_cast<cmzn_field_image_id>(
560 cmzn_fieldmodule_create_field_image_from_source(
id, sourceField.
getId())));
int setTextureCoordinateHeight(double height)
Definition: fieldimage.hpp:322
Definition: fieldimage.hpp:87
Field getDomainField()
Definition: fieldimage.hpp:436
int write(const StreaminformationImage &streaminformationImage)
Definition: streamimage.hpp:229
Definition: fieldimage.hpp:116
int read(const StreaminformationImage &streaminformationImage)
Definition: streamimage.hpp:224
HardwareCompressionMode getHardwareCompressionMode()
Definition: fieldimage.hpp:460
Base field type: an abstraction of a mathematical field.
Definition: field.hpp:46
Definition: fieldimage.hpp:164
double getTextureCoordinateHeight()
Definition: fieldimage.hpp:273
double getTextureCoordinateWidth()
Definition: fieldimage.hpp:263
int setTextureCoordinateDepth(double depth)
Definition: fieldimage.hpp:334
WrapMode getWrapMode()
Definition: fieldimage.hpp:509
Definition: fieldimage.hpp:81
Definition: fieldimage.hpp:132
FieldImage castImage()
Definition: fieldimage.hpp:563
Definition: fieldimage.hpp:121
Definition: fieldimage.hpp:67
Definition: fieldimage.hpp:148
int setHardwareCompressionMode(HardwareCompressionMode hardwareCompressionMode)
Definition: fieldimage.hpp:474
Definition: fieldimage.hpp:194
int setTextureCoordinateSizes(int valuesCount, const double *valuesIn)
Definition: fieldimage.hpp:348
FieldImage createFieldImageFromSource(const Field &sourceField)
Definition: fieldimage.hpp:557
char * getProperty(const char *property)
Definition: fieldimage.hpp:536
Definition: fieldimage.hpp:160
Definition: fieldimage.hpp:156
Definition: fieldimage.hpp:105
Definition: fieldimage.hpp:65
FieldImage createFieldImage()
Definition: fieldimage.hpp:551
cmzn_field_id getId() const
Definition: field.hpp:98
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:423
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:450
int setFilterMode(FilterMode filterMode)
Definition: fieldimage.hpp:498
int getDepthInPixels()
Definition: fieldimage.hpp:238
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:521
Definition: fieldimage.hpp:152
int readFile(const char *fileName)
Definition: fieldimage.hpp:380
Definition: fieldimage.hpp:126
Definition: fieldimage.hpp:146
StreaminformationImage createStreaminformationImage()
Definition: streamimage.hpp:217
Definition: fieldimage.hpp:72
int setTextureCoordinateWidth(double width)
Definition: fieldimage.hpp:310
int getSizeInPixels(int valuesCount, int *valuesOut)
Definition: fieldimage.hpp:253
int getTextureCoordinateSizes(int valuesCount, double *valuesOut)
Definition: fieldimage.hpp:297
Definition: fieldimage.hpp:180
Definition: fieldimage.hpp:198
Definition: fieldimage.hpp:93
Definition: fieldimage.hpp:99
CombineMode getCombineMode()
Definition: fieldimage.hpp:411
double getTextureCoordinateDepth()
Definition: fieldimage.hpp:283
Definition: fieldimage.hpp:205
WrapMode
Definition: fieldimage.hpp:192
FilterMode getFilterMode()
Definition: fieldimage.hpp:485