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

Glyph.h

Go to the documentation of this file.
00001 // Glyph.h: Schnittstelle für die Klasse CGlyph.
00002 //
00004 
00005 #if !defined(AFX_GLYPH_H__53E9B939_9CA1_4477_82C6_5480A152B85F__INCLUDED_)
00006 #define AFX_GLYPH_H__53E9B939_9CA1_4477_82C6_5480A152B85F__INCLUDED_
00007 
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011 
00012 #include <gl/gl.h>
00013 #include <gl/glu.h>
00014 #include <math.h> 
00015 #include "misc.h"
00016 
00017 
00020 class CGlyph  
00021 {
00022 public:
00023         CGlyph();
00024         virtual ~CGlyph();
00025         // draws a glyph at the position pos with the length:= this->length * length(vec)
00026         virtual void DrawGlyph(Vec3f pos, Vec3f vec) = 0;
00027         virtual void DrawGlyphBrushed(Vec3f pos, Vec3f vec) = 0;
00028         
00029         void DrawGlyphNormalizedAndBrushed(Vec3f pos, Vec3f vec);
00030         void DrawGlyphNormalized(Vec3f pos, Vec3f vec);
00031         void SetColor(float r, float g, float b, float a);
00032         void SetColorBrushed(float r, float g, float b, float a);
00033         void SetGlyphLength(float length);
00034 
00035 
00036 
00037 protected:
00038         // length of the glyph
00039         float length;
00040         // width of the glyph
00041         float width;
00042         // ratio width = ratio * length
00043         float ratio;
00044         colorRGBA color;
00045         colorRGBA colorBrushed;
00046 };
00047 
00048 #endif // !defined(AFX_GLYPH_H__53E9B939_9CA1_4477_82C6_5480A152B85F__INCLUDED_)

Generated on Thu Jan 23 04:30:11 2003 for FlowVis- vector field in 2D by doxygen1.3-rc2