Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

LwoSurfaceBlockOpacity Class Reference

#include <lwoSurfaceBlockOpacity.h>

Inheritance diagram for LwoSurfaceBlockOpacity:

LwoChunk IffChunk TypedReferenceCount TypedObject ReferenceCount List of all members.

Public Types

enum  Type {
  T_additive = 0, T_subtractive = 1, T_difference = 2, T_multiply = 3,
  T_divide = 4, T_alpha = 5, T_texture_displacement = 6
}

Public Member Functions

virtual bool read_iff (IffInputFile *in, size_t stop_at)
virtual void write (ostream &out, int indent_level=0) const
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Public Attributes

Type _type
float _opacity
int _envelope

Static Private Attributes

TypeHandle _type_handle

Member Enumeration Documentation

enum LwoSurfaceBlockOpacity::Type
 

Enumeration values:
T_additive 
T_subtractive 
T_difference 
T_multiply 
T_divide 
T_alpha 
T_texture_displacement 

Definition at line 34 of file lwoSurfaceBlockOpacity.h.


Member Function Documentation

virtual TypeHandle LwoSurfaceBlockOpacity::force_init_type void   )  [inline, virtual]
 

Reimplemented from LwoChunk.

Definition at line 56 of file lwoSurfaceBlockOpacity.h.

References get_class_type(), and init_type().

TypeHandle LwoSurfaceBlockOpacity::get_class_type void   )  [inline, static]
 

Reimplemented from LwoChunk.

Definition at line 57 of file lwoSurfaceBlockOpacity.h.

References _type_handle.

Referenced by force_init_type(), and get_type().

virtual TypeHandle LwoSurfaceBlockOpacity::get_type void   )  const [inline, virtual]
 

Reimplemented from LwoChunk.

Definition at line 53 of file lwoSurfaceBlockOpacity.h.

References get_class_type().

void LwoSurfaceBlockOpacity::init_type void   )  [inline, static]
 

Reimplemented from LwoChunk.

Definition at line 60 of file lwoSurfaceBlockOpacity.h.

References _type_handle, LwoChunk::get_class_type(), LwoChunk::init_type(), and register_type().

Referenced by force_init_type(), and init_liblwo().

bool LwoSurfaceBlockOpacity::read_iff IffInputFile in,
size_t  stop_at
[virtual]
 

Implements IffChunk.

Definition at line 38 of file lwoSurfaceBlockOpacity.cxx.

References _envelope, _opacity, _type, DCAST, IffInputFile::get_be_float32(), IffInputFile::get_be_uint16(), and LwoInputFile::get_vx().

void LwoSurfaceBlockOpacity::write ostream &  out,
int  indent_level = 0
const [virtual]
 

Reimplemented from IffChunk.

Definition at line 54 of file lwoSurfaceBlockOpacity.cxx.

References _envelope, _opacity, _type, IffChunk::get_id(), and indent().


Member Data Documentation

int LwoSurfaceBlockOpacity::_envelope
 

Definition at line 46 of file lwoSurfaceBlockOpacity.h.

Referenced by read_iff(), and write().

float LwoSurfaceBlockOpacity::_opacity
 

Definition at line 45 of file lwoSurfaceBlockOpacity.h.

Referenced by read_iff(), and write().

Type LwoSurfaceBlockOpacity::_type
 

Definition at line 44 of file lwoSurfaceBlockOpacity.h.

Referenced by read_iff(), and write().

TypeHandle LwoSurfaceBlockOpacity::_type_handle [static, private]
 

Reimplemented from LwoChunk.

Definition at line 25 of file lwoSurfaceBlockOpacity.cxx.

Referenced by get_class_type(), and init_type().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:01:14 2003 for Panda-Tool by doxygen1.3