HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IMG_DeepShadowChannel Class Reference

Single channel of a Houdini DSM image. More...

#include <IMG_DeepShadow.h>

Public Member Functions

 IMG_DeepShadowChannel (const char *name, int float_offset, int tuple_size, const char *storage="real32")
 
bool operator== (const IMG_DeepShadowChannel &s) const
 
const char * getName () const
 
const char * getStorage () const
 
int getOffset () const
 
int getTupleSize () const
 

Detailed Description

Single channel of a Houdini DSM image.

A Houdini deep shadow/camera file can have any number of image channels (planes). A DSM image contains a single channel for opacity. A deep camera image has the opacity channel along with any number of extra image channels.

Examples:
standalone/dsmprint.C.

Definition at line 230 of file IMG_DeepShadow.h.

Constructor & Destructor Documentation

IMG_DeepShadowChannel::IMG_DeepShadowChannel ( const char *  name,
int  float_offset,
int  tuple_size,
const char *  storage = "real32" 
)
Parameters
nameThe unique name of the DSM channel
float_offsetWhen data is read or written in deep shadow files, the pixel data is interleaved. That is, the data for a single pixel can be represented as an array of floats. Each channel has a unique offset into the array. The user should not assume that the offsets are contiguous. For example, the pixel data might look like:
[ Of.r, // Opacity red
Of.g, // Opacity green
Of.b, // Opacity blue
Cf.r, // Color (red)
Cf.g, // Color (green)
Cf.b, // Color (blue)
s, // s coordinate
t, // t coordinate
N.x, // Normal x
N.y, // Normal y
N.z, // Normal z
]
Where the channels would be defined by:
tuple_sizeNumber of floats
storageStorage type. This may be one of { "real16", "real32", "real64" }. This value represents the storage of the channel in the file.
See Also
IMG_DeepShadow::addExtraChannel()

Member Function Documentation

const char* IMG_DeepShadowChannel::getName ( ) const
inline

Data acceess function

Examples:
standalone/dsmprint.C.

Definition at line 276 of file IMG_DeepShadow.h.

int IMG_DeepShadowChannel::getOffset ( ) const
inline

Data acceess function

Definition at line 278 of file IMG_DeepShadow.h.

const char* IMG_DeepShadowChannel::getStorage ( ) const
inline

Data acceess function

Definition at line 277 of file IMG_DeepShadow.h.

int IMG_DeepShadowChannel::getTupleSize ( ) const
inline

Data acceess function

Examples:
standalone/dsmprint.C.

Definition at line 279 of file IMG_DeepShadow.h.

bool IMG_DeepShadowChannel::operator== ( const IMG_DeepShadowChannel s) const

The documentation for this class was generated from the following file: