shadevis.cpp File Reference

#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <time.h>
#include <GL/glew.h>
#include <GL/glut.h>
#include <wrap/gl/space.h>
#include <wrap/callback.h>
#include <vcg/math/base.h>
#include <wrap/gui/trackball.h>
#include <vcg/simplex/vertex/with/vcvn.h>
#include <vcg/simplex/face/with/fn.h>
#include <vcg/space/index/grid_static_ptr.h>
#include <vcg/complex/trimesh/base.h>
#include <wrap/io_trimesh/export_ply.h>
#include <wrap/io_trimesh/import_ply.h>
#include <vcg/complex/trimesh/update/normal.h>
#include <vcg/complex/trimesh/update/bounding.h>
#include <vcg/complex/trimesh/update/color.h>
#include "visshader.h"
#include <bitset>
#include <vcg/math/matrix44.h>
#include <wrap/gl/math.h>
#include <algorithm>
Include dependency graph for shadevis.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AFace
class  AMesh
class  AVertex

Defines

#define NOMINMAX

Functions

void BuildOnePixelTexture (Color4b c, unsigned int &TexInd)
bool cb (const char *buf)
void Draw (AMesh &mm)
void DrawLightVector ()
void DrawViewVector ()
void glutPrintf (int x, int y, const char *f,...)
int main (int argc, char **argv)
void SaveTexturedGround ()
void SetLight ()
void Toggle (bool &flag)
void UpdateVis ()
void ViewDisplay (void)
void ViewInit (void)
void ViewKey (unsigned char key, int, int)
void ViewMenu (int val)
void ViewMouse (int button, int state, int x, int y)
void ViewMouseMotion (int x, int y)
void ViewReshape (GLsizei w, GLsizei h)
void ViewSpecialKey (int, int, int)

Variables

float ambi = .2
Color4b BaseColor = Color4b::White
bool ClosedFlag = false
bool ColorFlag = true
float ConeAngleRad = math::ToRad(180.0f)
Point3f ConeDir (0, 1, 0)
bool CullFlag = false
float diff = .8
bool FalseColorFlag = false
float gamma_correction = 1
int GH
int GW
float hipass = 1
int imgcnt = 0
bool LightFlag = true
float lopass = 0
AMesh m
string OutNameMsh
TrackballQ = &QV
Trackball QL
Trackball QV
int SampleNum = 64
int ScreenH
int ScreenW
bool ShowDirFlag = false
bool SwapFlag = false
unsigned int TexInd = 0
float ViewAngle = 33
vector< Point3fViewVector
VertexVisShader< AMeshVis (m)
int WindowRes = 800

Define Documentation

#define NOMINMAX

Definition at line 63 of file shadevis.cpp.


Function Documentation

void BuildOnePixelTexture ( Color4b  c,
unsigned int &  TexInd 
)

Definition at line 134 of file shadevis.cpp.

bool cb ( const char *  buf  ) 

Definition at line 128 of file shadevis.cpp.

void Draw ( AMesh mm  ) 

Definition at line 208 of file shadevis.cpp.

void DrawLightVector (  ) 

Definition at line 189 of file shadevis.cpp.

void DrawViewVector (  ) 

Definition at line 178 of file shadevis.cpp.

void glutPrintf ( int  x,
int  y,
const char *  f,
  ... 
)

Definition at line 143 of file shadevis.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 495 of file shadevis.cpp.

void SaveTexturedGround (  ) 
void SetLight (  ) 

Definition at line 462 of file shadevis.cpp.

void Toggle ( bool &  flag  ) 

Definition at line 309 of file shadevis.cpp.

void UpdateVis (  ) 

Definition at line 310 of file shadevis.cpp.

void ViewDisplay ( void   ) 

Definition at line 253 of file shadevis.cpp.

void ViewInit ( void   ) 

Definition at line 475 of file shadevis.cpp.

void ViewKey ( unsigned char  key,
int  ,
int   
)

Definition at line 323 of file shadevis.cpp.

void ViewMenu ( int  val  ) 

Definition at line 423 of file shadevis.cpp.

void ViewMouse ( int  button,
int  state,
int  x,
int  y 
)

Definition at line 433 of file shadevis.cpp.

void ViewMouseMotion ( int  x,
int  y 
)

Definition at line 456 of file shadevis.cpp.

void ViewReshape ( GLsizei  w,
GLsizei  h 
)

Definition at line 247 of file shadevis.cpp.

void ViewSpecialKey ( int  ,
int  ,
int   
)

Definition at line 305 of file shadevis.cpp.


Variable Documentation

float ambi = .2

Definition at line 111 of file shadevis.cpp.

Color4b BaseColor = Color4b::White

Definition at line 119 of file shadevis.cpp.

bool ClosedFlag = false

Definition at line 105 of file shadevis.cpp.

bool ColorFlag = true

Definition at line 114 of file shadevis.cpp.

float ConeAngleRad = math::ToRad(180.0f)

Definition at line 107 of file shadevis.cpp.

Point3f ConeDir(0, 1, 0)
bool CullFlag = false

Definition at line 104 of file shadevis.cpp.

float diff = .8

Definition at line 110 of file shadevis.cpp.

bool FalseColorFlag = false

Definition at line 115 of file shadevis.cpp.

float gamma_correction = 1

Definition at line 109 of file shadevis.cpp.

int GH

Definition at line 431 of file shadevis.cpp.

int GW

Definition at line 431 of file shadevis.cpp.

float hipass = 1

Definition at line 109 of file shadevis.cpp.

int imgcnt = 0

Definition at line 117 of file shadevis.cpp.

bool LightFlag = true

Definition at line 113 of file shadevis.cpp.

float lopass = 0

Definition at line 109 of file shadevis.cpp.

Definition at line 238 of file shadevis.cpp.

string OutNameMsh

Definition at line 241 of file shadevis.cpp.

Trackball* Q = &QV

Definition at line 122 of file shadevis.cpp.

Definition at line 121 of file shadevis.cpp.

Definition at line 120 of file shadevis.cpp.

int SampleNum = 64

Definition at line 100 of file shadevis.cpp.

int ScreenH

Definition at line 124 of file shadevis.cpp.

int ScreenW

Definition at line 124 of file shadevis.cpp.

bool ShowDirFlag = false

Definition at line 116 of file shadevis.cpp.

bool SwapFlag = false

Definition at line 103 of file shadevis.cpp.

unsigned int TexInd = 0

Definition at line 102 of file shadevis.cpp.

float ViewAngle = 33

Definition at line 125 of file shadevis.cpp.

Definition at line 126 of file shadevis.cpp.

int WindowRes = 800

Definition at line 101 of file shadevis.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:20:37 2013