OpenVDB  9.0.1
Classes | Public Member Functions | Private Attributes | List of all members
Image Class Reference

#include <nanovdb/examples/benchmark/Image.h>

Inherits ImageData.

Classes

struct  ColorRGB
 

Public Member Functions

void clear (int log2=7)
 
__hostdev__ int width () const
 
__hostdev__ int height () const
 
__hostdev__ int size () const
 
__hostdev__ float u (int w) const
 
__hostdev__ float v (int h) const
 
__hostdev__ ColorRGBoperator() (int w, int h)
 
void writePPM (const std::string &fileName, const std::string &comment="width height 255")
 

Private Attributes

int mWidth
 
int mHeight
 
int mSize
 
float mScale [2]
 

Detailed Description

Note
Can only be constructed by an ImageHandle

Member Function Documentation

void clear ( int  log2 = 7)
inline
__hostdev__ int height ( ) const
inline
Image::ColorRGB & operator() ( int  w,
int  h 
)
inline
__hostdev__ int size ( ) const
inline
__hostdev__ float u ( int  w) const
inline
__hostdev__ float v ( int  h) const
inline
__hostdev__ int width ( ) const
inline
void writePPM ( const std::string &  fileName,
const std::string &  comment = "width  height 255" 
)
inline