Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

iv2sm.C File Reference

#include <Inventor/SoDB.h>
#include <Inventor/SoPrimitiveVertex.h>
#include <Inventor/actions/SoCallbackAction.h>
#include <Inventor/actions/SoWriteAction.h>
#include <Inventor/details/SoDetail.h>
#include <Inventor/nodes/SoDirectionalLight.h>
#include <Inventor/nodes/SoIndexedFaceSet.h>
#include <Inventor/nodes/SoIndexedTriangleStripSet.h>
#include <Inventor/nodes/SoMaterial.h>
#include <Inventor/nodes/SoPerspectiveCamera.h>
#include <Inventor/nodes/SoSeparator.h>
#include <Inventor/nodes/SoSphere.h>
#include <stdlib.h>
#include "std/support.H"
#include "std/stop_watch.H"
#include "mesh/bmesh.H"
#include "mesh/patch.H"
#include "dev/dev.H"
#include "dev/devpoll.H"
#include "mesh/gtexture.H"
#include <iostream.h>

Include dependency graph for iv2sm.C:

Go to the source code of this file.

Classes

class  Triangle

Defines

#define ROOM_STANDALONE

Functions

Wpt RET_Wpt (CBOOTHpt &p)
Wvec RET_Wvec (CBOOTHvec &v)
BOOTHpt RET_BOOTHpt (CWpt &p)
BOOTHvec RET_BOOTHvec (CWvec &v)
void outputMesh (ostream &os)
ostream & operator<< (ostream &os, const Triangle &tri)
void initialize_mesh ()
void scenegraph_to_tris (SoNode *)
SoCallbackAction::Response shapeCallback (void *, SoCallbackAction *, const SoNode *)
SoCallbackAction::Response materialCallback (void *, SoCallbackAction *, const SoNode *)
void printTriangleCallback (void *, SoCallbackAction *, const SoPrimitiveVertex *, const SoPrimitiveVertex *, const SoPrimitiveVertex *)
int printVertex (const SoPrimitiveVertex *, const SbMatrix &mat)
void add_state_coords (SoCallbackAction *cb)
void add_field_coords (SoCallbackAction *cb, const SoMFVec3f &coords)
void indexed_face_set (SoIndexedFaceSet *fs, SoCallbackAction *cb)
void ind_tri_strip (SoIndexedTriangleStripSet *tristrip, SoCallbackAction *cb)
void usage (char *arg)
int main (int argc, char **argv)

Variables

Wpt(* BOOTHpttoWpt )(CBOOTHpt &) = RET_Wpt
Wvec(* BOOTHvectoWvec )(CBOOTHvec &) = RET_Wvec
BOOTHpt(* WpttoBOOTHpt )(CWpt &) = RET_BOOTHpt
BOOTHvec(* WvectoBOOTHvec )(CWvec &) = RET_BOOTHvec
int correct = 0
int separate_files = 0
int obj_num = 0
ARRAY< SbVec3f > points (1024)
ARRAY< Triangletris (1024)
ARRAY< SbVec2f > texcoords (1024)
SbVec3f objColor
int badtris = 0
int reppts = 0
int duptris = 0
ostream * output_stream = 0


Define Documentation

#define ROOM_STANDALONE
 

Definition at line 33 of file iv2sm.C.


Function Documentation

void add_field_coords SoCallbackAction *  cb,
const SoMFVec3f &  coords
 

Definition at line 210 of file iv2sm.C.

References points.

Referenced by ind_tri_strip().

void add_state_coords SoCallbackAction *  cb  ) 
 

Definition at line 170 of file iv2sm.C.

References points, and texcoords.

Referenced by ind_tri_strip(), and indexed_face_set().

void ind_tri_strip SoIndexedTriangleStripSet *  tristrip,
SoCallbackAction *  cb
 

Definition at line 250 of file iv2sm.C.

References add_field_coords(), add_state_coords(), and tris.

Referenced by shapeCallback().

void indexed_face_set SoIndexedFaceSet *  fs,
SoCallbackAction *  cb
 

Definition at line 232 of file iv2sm.C.

References add_state_coords(), and tris.

Referenced by shapeCallback().

void initialize_mesh  ) 
 

Definition at line 115 of file iv2sm.C.

References badtris, duptris, points, reppts, texcoords, and tris.

Referenced by shapeCallback().

int main int  argc,
char **  argv
 

Definition at line 525 of file iv2sm.C.

References brcase, correct, output_stream, outputMesh(), stop_watch::print_time(), scenegraph_to_tris(), separate_files, and stop_watch::set().

SoCallbackAction::Response materialCallback void *  ,
SoCallbackAction *  ,
const SoNode * 
 

Definition at line 295 of file iv2sm.C.

References objColor, and separate_files.

Referenced by scenegraph_to_tris().

ostream& operator<< ostream &  os,
const Triangle tri
 

Definition at line 95 of file iv2sm.C.

Referenced by REF_CLASS().

void outputMesh ostream &  os  ) 
 

Definition at line 463 of file iv2sm.C.

References Bvert::index(), nfaces, points, Bface::set_tex_coords(), texcoords, BMESH::TOPOLOGY_CHANGED, tris, and Bface::v().

Referenced by main(), and shapeCallback().

void printTriangleCallback void *  ,
SoCallbackAction *  ,
const SoPrimitiveVertex *  ,
const SoPrimitiveVertex *  ,
const SoPrimitiveVertex * 
 

Definition at line 391 of file iv2sm.C.

References badtris, printVertex(), and tris.

Referenced by scenegraph_to_tris().

int printVertex const SoPrimitiveVertex *  ,
const SbMatrix &  mat
 

Definition at line 425 of file iv2sm.C.

References points.

Referenced by printTriangleCallback().

BOOTHpt RET_BOOTHpt CWpt p  )  [inline]
 

Definition at line 63 of file iv2sm.C.

BOOTHvec RET_BOOTHvec CWvec v  )  [inline]
 

Definition at line 64 of file iv2sm.C.

Wpt RET_Wpt CBOOTHpt &  p  )  [inline]
 

Definition at line 61 of file iv2sm.C.

Wvec RET_Wvec CBOOTHvec &  v  )  [inline]
 

Definition at line 62 of file iv2sm.C.

void scenegraph_to_tris SoNode *   ) 
 

Definition at line 143 of file iv2sm.C.

References materialCallback(), printTriangleCallback(), and shapeCallback().

Referenced by main().

SoCallbackAction::Response shapeCallback void *  ,
SoCallbackAction *  ,
const SoNode * 
 

Definition at line 329 of file iv2sm.C.

References ind_tri_strip(), indexed_face_set(), initialize_mesh(), obj_num, output_stream, outputMesh(), separate_files, and tris.

Referenced by scenegraph_to_tris().

void usage char *  arg  ) 
 

Definition at line 511 of file iv2sm.C.


Variable Documentation

int badtris = 0
 

Definition at line 109 of file iv2sm.C.

Referenced by initialize_mesh(), and printTriangleCallback().

Wpt(* BOOTHpttoWpt)(CBOOTHpt &) = RET_Wpt
 

Definition at line 65 of file iv2sm.C.

Wvec(* BOOTHvectoWvec)(CBOOTHvec &) = RET_Wvec
 

Definition at line 66 of file iv2sm.C.

int correct = 0
 

Definition at line 73 of file iv2sm.C.

Referenced by main().

int duptris = 0
 

Definition at line 111 of file iv2sm.C.

Referenced by initialize_mesh().

int obj_num = 0
 

Definition at line 75 of file iv2sm.C.

Referenced by shapeCallback().

SbVec3f objColor
 

Definition at line 107 of file iv2sm.C.

Referenced by materialCallback().

ostream* output_stream = 0
 

Definition at line 112 of file iv2sm.C.

Referenced by main(), and shapeCallback().

typedef GLsizei const GLfloat * points
 

Definition at line 6147 of file glew.H.

Referenced by add_field_coords(), add_state_coords(), initialize_mesh(), outputMesh(), printVertex(), BMESH::recenter(), and BMESH::z_span().

int reppts = 0
 

Definition at line 110 of file iv2sm.C.

Referenced by initialize_mesh().

int separate_files = 0
 

Definition at line 74 of file iv2sm.C.

Referenced by main(), materialCallback(), and shapeCallback().

ARRAY<SbVec2f> texcoords(1024)
 

Referenced by add_state_coords(), initialize_mesh(), and outputMesh().

ARRAY<Triangle> tris(1024)
 

Referenced by GL_VIEW::draw_frame(), GL_VIEW::draw_objects(), ind_tri_strip(), indexed_face_set(), initialize_mesh(), BMESH::operator=(), outputMesh(), GL_VIEW::paint(), printTriangleCallback(), shapeCallback(), and GtexUtil::show_tris().

BOOTHpt(* WpttoBOOTHpt)(CWpt &) = RET_BOOTHpt
 

Definition at line 67 of file iv2sm.C.

BOOTHvec(* WvectoBOOTHvec)(CWvec &) = RET_BOOTHvec
 

Definition at line 68 of file iv2sm.C.


Generated on Mon Sep 18 11:41:44 2006 for jot by  doxygen 1.4.4