Unplugged Viz
High-performance scientific visualization isn't just for the workstation anymore
Durwella.Unplugged.Viz.PowerOfTwoTextureAdapter Class Reference

An adapter between a dataset of a specified size and a texture map with power-of-two dimensions. More...

Public Member Functions

 PowerOfTwoTextureAdapter (int dataWidth, int dataHeight)
 Initializes a new instance of the T:Durwella.Unplugged.Viz.PowerOfTwoTextureAdapter class. More...
 
byte[,] NewTextureMap ()
 Returns a texture map with: a byte[TextureHeight, TextureWidth]. More...
 

Properties

int DataWidth [get]
 Gets the width of the data. More...
 
int DataHeight [get]
 Gets the height of the data. More...
 
int TextureWidth [get]
 Gets the width of the texture (a power of two). More...
 
int TextureHeight [get]
 Gets the height of the texture (a power of two). More...
 
float UMax [get]
 The proportion of TextureWidth for which there are data. More...
 
float VMax [get]
 The proportion of TextureHeight for which there are data. More...
 
float[,] TextureCoordinates [get]
 Gets the texture coordinates. More...
 

Detailed Description

An adapter between a dataset of a specified size and a texture map with power-of-two dimensions.

Constructor & Destructor Documentation

Durwella.Unplugged.Viz.PowerOfTwoTextureAdapter.PowerOfTwoTextureAdapter ( int  dataWidth,
int  dataHeight 
)

Initializes a new instance of the T:Durwella.Unplugged.Viz.PowerOfTwoTextureAdapter class.

Parameters
dataWidthThe width of the data for the texture map.
dataHeightThe width of the data for the texture map.

Member Function Documentation

byte [,] Durwella.Unplugged.Viz.PowerOfTwoTextureAdapter.NewTextureMap ( )

Returns a texture map with: a byte[TextureHeight, TextureWidth].

Property Documentation

int Durwella.Unplugged.Viz.PowerOfTwoTextureAdapter.DataHeight
get

Gets the height of the data.

int Durwella.Unplugged.Viz.PowerOfTwoTextureAdapter.DataWidth
get

Gets the width of the data.

float [,] Durwella.Unplugged.Viz.PowerOfTwoTextureAdapter.TextureCoordinates
get

Gets the texture coordinates.

int Durwella.Unplugged.Viz.PowerOfTwoTextureAdapter.TextureHeight
get

Gets the height of the texture (a power of two).

int Durwella.Unplugged.Viz.PowerOfTwoTextureAdapter.TextureWidth
get

Gets the width of the texture (a power of two).

float Durwella.Unplugged.Viz.PowerOfTwoTextureAdapter.UMax
get

The proportion of TextureWidth for which there are data.

float Durwella.Unplugged.Viz.PowerOfTwoTextureAdapter.VMax
get

The proportion of TextureHeight for which there are data.


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