EMAN2
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
EMAN::U3DWriter Class Reference

A work in progress by David Woolford. More...

#include <marchingcubes.h>

Public Types

typedef unsigned int U32
 
typedef long unsigned int U64
 
typedef double F64
 
typedef float F32
 
typedef short int I16
 
typedef short unsigned int U16
 
typedef unsigned char U8
 

Public Member Functions

 U3DWriter ()
 
 ~U3DWriter ()
 
int write (const string &filename)
 
ostream & write (ostream &)
 
template<>
ostream & write (ostream &os, const string &)
 

Private Member Functions

unsigned int size_of_in_bytes ()
 
void test_type_sizes ()
 
ostream & write_header (ostream &)
 
ostream & write_clod_mesh_generator_node (ostream &os)
 
template<typename type >
ostream & write (ostream &os, const type &T)
 

Private Attributes

U32 DIFFUSE_COLOR_COUNT
 
U32 SPECULAR_COLOR_COUNT
 
CustomVector< F32pp
 
CustomVector< F32nn
 
CustomVector< unsigned int > ff
 

Detailed Description

A work in progress by David Woolford.

Author
David Woolford
Date
March 2009

Definition at line 502 of file marchingcubes.h.

Member Typedef Documentation

◆ F32

typedef float EMAN::U3DWriter::F32

Definition at line 507 of file marchingcubes.h.

◆ F64

typedef double EMAN::U3DWriter::F64

Definition at line 506 of file marchingcubes.h.

◆ I16

typedef short int EMAN::U3DWriter::I16

Definition at line 508 of file marchingcubes.h.

◆ U16

typedef short unsigned int EMAN::U3DWriter::U16

Definition at line 509 of file marchingcubes.h.

◆ U32

typedef unsigned int EMAN::U3DWriter::U32

Definition at line 504 of file marchingcubes.h.

◆ U64

typedef long unsigned int EMAN::U3DWriter::U64

Definition at line 505 of file marchingcubes.h.

◆ U8

typedef unsigned char EMAN::U3DWriter::U8

Definition at line 510 of file marchingcubes.h.

Constructor & Destructor Documentation

◆ U3DWriter()

EMAN::U3DWriter::U3DWriter ( )

◆ ~U3DWriter()

EMAN::U3DWriter::~U3DWriter ( )

Member Function Documentation

◆ size_of_in_bytes()

unsigned int EMAN::U3DWriter::size_of_in_bytes ( )
private

◆ test_type_sizes()

void EMAN::U3DWriter::test_type_sizes ( )
private

◆ write() [1/4]

int EMAN::U3DWriter::write ( const string &  filename)

◆ write() [2/4]

ostream & EMAN::U3DWriter::write ( ostream &  )

◆ write() [3/4]

template<>
ostream & EMAN::U3DWriter::write ( ostream &  os,
const string &   
)

◆ write() [4/4]

template<typename type >
ostream & EMAN::U3DWriter::write ( ostream &  os,
const type &  T 
)
inlineprivate

Definition at line 531 of file marchingcubes.h.

531 {
532 os.write( (const char*)(&T), sizeof(type) );
533 return os;
534 }

◆ write_clod_mesh_generator_node()

ostream & EMAN::U3DWriter::write_clod_mesh_generator_node ( ostream &  os)
private

◆ write_header()

ostream & EMAN::U3DWriter::write_header ( ostream &  )
private

Member Data Documentation

◆ DIFFUSE_COLOR_COUNT

U32 EMAN::U3DWriter::DIFFUSE_COLOR_COUNT
private

Definition at line 606 of file marchingcubes.h.

◆ ff

CustomVector<unsigned int> EMAN::U3DWriter::ff
private

Definition at line 612 of file marchingcubes.h.

◆ nn

CustomVector<F32> EMAN::U3DWriter::nn
private

Definition at line 611 of file marchingcubes.h.

◆ pp

CustomVector<F32> EMAN::U3DWriter::pp
private

Definition at line 610 of file marchingcubes.h.

◆ SPECULAR_COLOR_COUNT

U32 EMAN::U3DWriter::SPECULAR_COLOR_COUNT
private

Definition at line 607 of file marchingcubes.h.


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