EMAN2
Public Types | Public Member Functions | Private Member Functions | Private Attributes
EMAN::U3DWriter Class Reference

Most commonly used constructor calls set_data(em) More...

#include <marchingcubes.h>

Collaboration diagram for EMAN::U3DWriter:
Collaboration graph
[legend]

List of all members.

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

Most commonly used constructor calls set_data(em)

Author:
David Woolford
Date:
March 2009
Parameters:
emthe EMData object to generate triangles and normals for Set Isosurface value Sets Voxel data for Isosurface implementation Calls calculate_min_max_vals which generates the tree of data
datathe emdata object to be rendered in 3D
Exceptions:
ImageDimensionExceptionif the image z dimension is 1 Set Grid Size Get the number of feasible samplings A work in progress by David Woolford

Definition at line 506 of file marchingcubes.h.


Member Typedef Documentation

typedef float EMAN::U3DWriter::F32

Definition at line 511 of file marchingcubes.h.

typedef double EMAN::U3DWriter::F64

Definition at line 510 of file marchingcubes.h.

typedef short int EMAN::U3DWriter::I16

Definition at line 512 of file marchingcubes.h.

typedef short unsigned int EMAN::U3DWriter::U16

Definition at line 513 of file marchingcubes.h.

typedef unsigned int EMAN::U3DWriter::U32

Definition at line 508 of file marchingcubes.h.

typedef long unsigned int EMAN::U3DWriter::U64

Definition at line 509 of file marchingcubes.h.

typedef unsigned char EMAN::U3DWriter::U8

Definition at line 514 of file marchingcubes.h.


Constructor & Destructor Documentation

EMAN::U3DWriter::U3DWriter ( )
EMAN::U3DWriter::~U3DWriter ( )

Member Function Documentation

unsigned int EMAN::U3DWriter::size_of_in_bytes ( ) [private]
void EMAN::U3DWriter::test_type_sizes ( ) [private]
template<typename type >
ostream& EMAN::U3DWriter::write ( ostream &  os,
const type &  T 
) [inline, private]

Definition at line 535 of file marchingcubes.h.

                                                           {
                        os.write( (const char*)(&T), sizeof(type) );
                        return os;
                }
template<>
ostream& EMAN::U3DWriter::write ( ostream &  os,
const string &   
)
ostream& EMAN::U3DWriter::write ( ostream &  )
int EMAN::U3DWriter::write ( const string &  filename)
ostream& EMAN::U3DWriter::write_clod_mesh_generator_node ( ostream &  os) [private]
ostream& EMAN::U3DWriter::write_header ( ostream &  ) [private]

Member Data Documentation

Definition at line 610 of file marchingcubes.h.

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

Definition at line 616 of file marchingcubes.h.

Definition at line 615 of file marchingcubes.h.

Definition at line 614 of file marchingcubes.h.

Definition at line 611 of file marchingcubes.h.


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