![]() |
Simplygon C++ API
8.3.35800.0
|
#include <SimplygonSDK.h>
Public Member Functions | |
virtual void | DeepCopy (IChunkedImageData *source, bool copy_data)=0 |
virtual const char * | GetClass () |
virtual unsigned int | GetTemplateXSize ()=0 |
virtual unsigned int | GetTemplateYSize ()=0 |
virtual unsigned int | GetTemplateZSize ()=0 |
virtual unsigned int | GetTotalXSize ()=0 |
virtual unsigned int | GetTotalYSize ()=0 |
virtual unsigned int | GetTotalZSize ()=0 |
virtual unsigned int | GetXSize ()=0 |
virtual unsigned int | GetYSize ()=0 |
virtual unsigned int | GetZSize ()=0 |
virtual bool | IsA (const char *type) const |
virtual bool | IsChunkLocked1D (rid x)=0 |
virtual bool | IsChunkLocked2D (rid x, rid y)=0 |
virtual bool | IsChunkLocked3D (rid x, rid y, rid z)=0 |
virtual CountedPointer< IImageData > | LockChunk1D (rid x)=0 |
virtual CountedPointer< IImageData > | LockChunk2D (rid x, rid y)=0 |
virtual CountedPointer< IImageData > | LockChunk3D (rid x, rid y, rid z)=0 |
virtual CountedPointer< IChunkedImageData > | NewCopy (bool copy_data)=0 |
virtual void | Reset ()=0 |
virtual void | Set1DSize (unsigned int _xs)=0 |
virtual void | Set2DSize (unsigned int _xs, unsigned int _ys)=0 |
virtual void | Set3DSize (unsigned int _xs, unsigned int _ys, unsigned int _zs)=0 |
virtual void | SetTemplateImage (IImageData *_template)=0 |
virtual void | UnlockChunk1D (rid x)=0 |
virtual void | UnlockChunk2D (rid x, rid y)=0 |
virtual void | UnlockChunk3D (rid x, rid y, rid z)=0 |
![]() | |
virtual rid | AddObserver (robserver *Observer, rid EventId)=0 |
virtual void | AddRef ()=0 |
virtual rstring | GetName ()=0 |
virtual void * | GetUserComponentArea (rid userid)=0 |
virtual void | PrintInfo ()=0 |
virtual void | Release ()=0 |
virtual void | RemoveObserver (rid ObserverId)=0 |
virtual void | SetName (const char *Name)=0 |
Static Public Member Functions | |
static bool | IsClassA (const char *type) |
static IChunkedImageData * | SafeCast (IObject *ptr) |
![]() | |
static bool | IsClassA (const char *type) |
static IObject * | SafeCast (IObject *ptr) |
ReChunkedImageData holds chunks for ReImageData objects. ReImageData objects can be referenced, and swapped in/out of memory, to secondary storage. This is useful for very large images that cannot be stored in-memory. ReImageData objects can be indexed in 1-,2- or 3D, and each ReImageData chunk is cloned from a source ReImageData object, at setup. Fields added to ReImageData chunks after setup will only be added into that chunk, and is not recommended.
Definition at line 4288 of file SimplygonSDK.h.
|
pure virtual |
Deep copies (with template) the data from another image. The source image must be fully unlocked before copying.
source | source object |
copy_data | is set, duplicate the data kept in the source image data object |
|
virtual |
GetClass returns the name of the class of the object.
Reimplemented from SimplygonSDK::IObject.
|
pure virtual |
Get the X dimension size of the template image used to create the chunks.
|
pure virtual |
Get the Y dimension size of the template image used to create the chunks.
|
pure virtual |
Get the Z dimension size of the template image used to create the chunks.
|
pure virtual |
Get the total X dimension size of the full image.
|
pure virtual |
Get the total Y dimension size of the full image.
|
pure virtual |
Get the total Z dimension size of the full image.
|
pure virtual |
Get the number of image chunks in the X dimension.
|
pure virtual |
Get the number of image chunks in the Y dimension.
|
pure virtual |
Get the number of image chunks in the Z dimension.
|
virtual |
The IsA function returns true if the object is a or is a descendant of the class named as the type parameter
type | is the name of the class to check if the object is, or is a descendant of |
Reimplemented from SimplygonSDK::IObject.
|
pure virtual |
Returns true if a chunk is locked. The method is thread-safe.
x | x coordinate of the chunk |
Returns true if a chunk is locked. The method is thread-safe.
x | x coordinate of the chunk |
y | y coordinate of the chunk |
Returns true if a chunk is locked. The method is thread-safe.
x | x coordinate of the chunk |
y | y coordinate of the chunk |
z | z coordinate of the chunk |
|
inlinestatic |
The IsClassA function returns true if IChunkedImageData is a or is a descendant of the class named as the type parameter
type | is the name of the class to check if the class is, or is a descendant of |
Definition at line 4309 of file SimplygonSDK.h.
|
pure virtual |
Locks a chunk for editing, and returns an image object to the caller. Only one lock is allowed per chunk. Use IsChunkLocked to check if a chunk is locked before trying to lock it. If the Lock failed, because the chunk is already locked, NULL is returned. The method is thread-safe.
x | x coordinate of the chunk |
|
pure virtual |
Locks a chunk for editing, and returns an image object to the caller. Only one lock is allowed per chunk. Use IsChunkLocked to check if a chunk is locked before trying to lock it. If the Lock failed, because the chunk is already locked, NULL is returned. The method is thread-safe.
x | x coordinate of the chunk |
y | y coordinate of the chunk |
|
pure virtual |
Locks a chunk for editing, and returns an image object to the caller. Only one lock is allowed per chunk. Use IsChunkLocked to check if a chunk is locked before trying to lock it. If the Lock failed, because the chunk is already locked, NULL is returned. The method is thread-safe.
x | x coordinate of the chunk |
y | y coordinate of the chunk |
z | z coordinate of the chunk |
|
pure virtual |
Makes a new copy of the chunked image data This image must be fully unlocked before copying.
copy_data | is set, duplicate the data kept in the image data object |
|
pure virtual |
Clears all data from the image, and removes all data fields. The template image is kept, but can be replaced using SetTemplateImage before calling one of the SetXDSize methods. Any lock that was hold in the image is automatically released.
|
inlinestatic |
SafeCast makes sure the pointer is of a class that can be cast into a IChunkedImageData pointer, and if this is possible, returns the cast pointer.
ptr | is the pointer to be cast into a IChunkedImageData pointer |
Definition at line 4322 of file SimplygonSDK.h.
|
pure virtual |
Set the number of image chunks in the X dimension.
_xs | the desired number of chunks in the X dimension. |
|
pure virtual |
Set the number of image chunks in the X and Y dimensions.
_xs | the desired number of chunks in the X dimension. |
_ys | the desired number of chunks in the X dimension. |
|
pure virtual |
Set the number of image chunks in the X, Y and Z dimensions.
_xs | the desired number of chunks in the X dimension. |
_ys | the desired number of chunks in the X dimension. |
_zs | the desired number of chunks in the X dimension. |
|
pure virtual |
Sets the template image to use as template for creating new chunks. The template image is cloned, it can be released after the setup. Note that SetTemplateImage must be called before allocating image chunks.
_template | the template image object |
|
pure virtual |
Unlocks a previously referenced chunk. All references to the object should be released. The method is thread-safe.
x | x coordinate of the chunk |
Unlocks a previously referenced chunk. All references to the object should be released. The method is thread-safe.
x | x coordinate of the chunk |
y | y coordinate of the chunk |
Unlocks a previously referenced chunk. All references to the object should be released. The method is thread-safe.
x | x coordinate of the chunk |
y | y coordinate of the chunk |
z | z coordinate of the chunk |