TGLParametricPlot Class Reference

#include <TGLParametric.h>

Inheritance diagram for TGLParametricPlot:

TGLPlotPainter TGLPlotPainter TVirtualGLPainter TVirtualGLPainter TVirtualGLPainter TVirtualGLPainter List of all members.

Public Member Functions

 TGLParametricPlot (TGLParametricEquation *equation, TGLPlotCamera *camera)
Bool_t InitGeometry ()
void StartPan (Int_t px, Int_t py)
void Pan (Int_t px, Int_t py)
char * GetPlotInfo (Int_t px, Int_t py)
void AddOption (const TString &option)
void ProcessEvent (Int_t event, Int_t px, Int_t py)
 TGLParametricPlot (TGLParametricEquation *equation, TGLPlotCamera *camera)
Bool_t InitGeometry ()
void StartPan (Int_t px, Int_t py)
void Pan (Int_t px, Int_t py)
char * GetPlotInfo (Int_t px, Int_t py)
void AddOption (const TString &option)
void ProcessEvent (Int_t event, Int_t px, Int_t py)

Private Types

enum  EMeshSize
enum  EMeshSize

Private Member Functions

void InitGL () const
void DeInitGL () const
void DrawPlot () const
void InitColors ()
void DrawSectionXOZ () const
void DrawSectionYOZ () const
void DrawSectionXOY () const
void SetSurfaceColor () const
 TGLParametricPlot (const TGLParametricPlot &)
TGLParametricPlotoperator= (const TGLParametricPlot &)
void InitGL () const
void DeInitGL () const
void DrawPlot () const
void InitColors ()
void DrawSectionXOZ () const
void DrawSectionYOZ () const
void DrawSectionXOY () const
void SetSurfaceColor () const
 TGLParametricPlot (const TGLParametricPlot &)
TGLParametricPlotoperator= (const TGLParametricPlot &)

Private Attributes

Int_t fMeshSize
TGL2DArray< Vertex_tfMesh
Bool_t fShowMesh
Int_t fColorScheme
TGLParametricEquationfEquation
TGL2DArray< Vertex_tfMesh
TGLParametricEquationfEquation

Classes

struct  Vertex_t

Detailed Description

Definition at line 93 of file TGLParametric.h.


Member Enumeration Documentation

enum TGLParametricPlot::EMeshSize [private]

Definition at line 101 of file TGLParametric.h.

enum TGLParametricPlot::EMeshSize [private]

Definition at line 101 of file TGLParametric.h.


Constructor & Destructor Documentation

TGLParametricPlot::TGLParametricPlot ( TGLParametricEquation equation,
TGLPlotCamera camera 
)

TGLParametricPlot::TGLParametricPlot ( const TGLParametricPlot  )  [private]

TGLParametricPlot::TGLParametricPlot ( TGLParametricEquation equation,
TGLPlotCamera camera 
)

TGLParametricPlot::TGLParametricPlot ( const TGLParametricPlot  )  [private]


Member Function Documentation

Bool_t TGLParametricPlot::InitGeometry (  )  [virtual]

Implements TGLPlotPainter.

Definition at line 284 of file TGLParametric.cxx.

References Error, TGLParametricEquation::EvalVertex(), TGLPlotPainter::fBackBox, TGLPlotPainter::fCamera, fEquation, fMesh, fMeshSize, for(), TGLPlotBox::Get3DBox(), TGLParametricEquation::GetURange(), TGLParametricEquation::GetVRange(), i, TGLParametricEquation::IsModified(), TObject::IsZombie(), j, kFALSE, kTRUE, Max, max, min, TMath::Min(), TMath::Normal2Plane(), TGLParametricEquation::SetModified(), TGLPlotBox::SetPlotBox(), TGLPlotCamera::SetViewVolume(), u, v1, TGLVertex3::X(), TGLVertex3::Y(), and TGLVertex3::Z().

Referenced by ProcessEvent().

void TGLParametricPlot::StartPan ( Int_t  px,
Int_t  py 
) [virtual]

Implements TGLPlotPainter.

Definition at line 374 of file TGLParametric.cxx.

References TGLPlotPainter::fBoxCut, TGLPlotPainter::fCamera, TGLPlotPainter::fMousePosition, TPoint::fX, TPoint::fY, TGLPlotCamera::GetHeight(), TGLBoxCut::StartMovement(), and TGLPlotCamera::StartPan().

void TGLParametricPlot::Pan ( Int_t  px,
Int_t  py 
) [virtual]

Implements TVirtualGLPainter.

Definition at line 384 of file TGLParametric.cxx.

References TGLPlotCamera::Apply(), TGLPlotPainter::fBoxCut, TGLPlotPainter::fCamera, TGLPlotPainter::fPadPhi, TGLPlotPainter::fPadTheta, TGLPlotPainter::fSelectedPart, TGLPlotPainter::fUpdateSelection, TGLPlotCamera::GetHeight(), TGLBoxCut::IsActive(), kTRUE, TGLPlotPainter::kXAxis, TGLPlotPainter::kZAxis, TGLBoxCut::MoveBox(), TGLPlotCamera::Pan(), TGLPlotPainter::RestoreModelviewMatrix(), TGLPlotPainter::RestoreProjectionMatrix(), TGLPlotPainter::SaveModelviewMatrix(), TGLPlotPainter::SaveProjectionMatrix(), and TGLPlotCamera::SetCamera().

char * TGLParametricPlot::GetPlotInfo ( Int_t  px,
Int_t  py 
) [virtual]

Implements TVirtualGLPainter.

Definition at line 408 of file TGLParametric.cxx.

void TGLParametricPlot::AddOption ( const TString option  )  [virtual]

Implements TGLPlotPainter.

Definition at line 417 of file TGLParametric.cxx.

void TGLParametricPlot::ProcessEvent ( Int_t  event,
Int_t  px,
Int_t  py 
) [virtual]

Implements TGLPlotPainter.

Definition at line 423 of file TGLParametric.cxx.

References TGLPlotPainter::fBoxCut, fColorScheme, TGLPlotPainter::fHighColor, fMeshSize, Form(), fShowMesh, TGLPlotPainter::fUpdateSelection, gROOT, gVirtualX, Info, InitColors(), InitGeometry(), TGLBoxCut::IsActive(), kButton1Double, kHigh, kKey_C, kKey_c, kKey_L, kKey_l, kKey_S, kKey_s, kKey_W, kKey_w, kKeyPress, kLow, kTRUE, TGLPlotPainter::Paint(), TROOT::ProcessLineFast(), and TGLBoxCut::TurnOnOff().

void TGLParametricPlot::InitGL (  )  const [private, virtual]

Implements TGLPlotPainter.

Definition at line 455 of file TGLParametric.cxx.

References GL_CULL_FACE, GL_DEPTH_TEST, GL_LIGHT0, GL_LIGHT_MODEL_TWO_SIDE, GL_LIGHTING, GL_TRUE, glDisable(), glEnable(), and glLightModeli().

void TGLParametricPlot::DeInitGL (  )  const [private, virtual]

Implements TGLPlotPainter.

Definition at line 466 of file TGLParametric.cxx.

References GL_CULL_FACE, GL_DEPTH_TEST, GL_FALSE, GL_LIGHT0, GL_LIGHT_MODEL_TWO_SIDE, GL_LIGHTING, glDisable(), and glLightModeli().

void TGLParametricPlot::DrawPlot (  )  const [private, virtual]

Implements TGLPlotPainter.

Definition at line 477 of file TGLParametric.cxx.

References TGLBoxCut::DrawBox(), TGLPlotPainter::fBoxCut, fColorScheme, TGLPlotPainter::fHighColor, fMesh, fMeshSize, TGLPlotPainter::fSelectedPart, TGLPlotPainter::fSelectionBase, TGLPlotPainter::fSelectionPass, fShowMesh, GL_BLEND, GL_DIFFUSE, GL_FILL, GL_FRONT_AND_BACK, GL_LIGHTING, GL_LINE, GL_LINE_SMOOTH, GL_ONE_MINUS_SRC_ALPHA, GL_POLYGON, GL_POLYGON_OFFSET_FILL, GL_SRC_ALPHA, GL_TRIANGLES, glBegin(), glBlendFunc(), glColor4d(), glDisable(), glEnable(), glEnd(), glMaterialfv(), glNormal3dv(), glPolygonMode(), glPolygonOffset(), glVertex3dv(), i, TGLBoxCut::IsActive(), TGLBoxCut::IsInCut(), j, Max, TMath::Max(), TMath::Min(), Rgl::ObjectIDToColor(), and SetSurfaceColor().

void TGLParametricPlot::InitColors (  )  [private]

Definition at line 588 of file TGLParametric.cxx.

References fColorScheme, fEquation, fMesh, fMeshSize, Rgl::GetColor(), TGLParametricEquation::GetURange(), i, j, and u.

Referenced by ProcessEvent().

void TGLParametricPlot::DrawSectionXOZ (  )  const [private, virtual]

Implements TGLPlotPainter.

Definition at line 609 of file TGLParametric.cxx.

void TGLParametricPlot::DrawSectionYOZ (  )  const [private, virtual]

Implements TGLPlotPainter.

Definition at line 615 of file TGLParametric.cxx.

void TGLParametricPlot::DrawSectionXOY (  )  const [private, virtual]

Implements TGLPlotPainter.

Definition at line 621 of file TGLParametric.cxx.

void TGLParametricPlot::SetSurfaceColor (  )  const [private]

Definition at line 627 of file TGLParametric.cxx.

References fColorScheme, GL_BACK, GL_DIFFUSE, GL_FRONT, GL_FRONT_AND_BACK, GL_SHININESS, GL_SPECULAR, glMaterialf(), and glMaterialfv().

Referenced by DrawPlot().

TGLParametricPlot& TGLParametricPlot::operator= ( const TGLParametricPlot  )  [private]

Bool_t TGLParametricPlot::InitGeometry (  )  [virtual]

Implements TGLPlotPainter.

void TGLParametricPlot::StartPan ( Int_t  px,
Int_t  py 
) [virtual]

Implements TGLPlotPainter.

void TGLParametricPlot::Pan ( Int_t  px,
Int_t  py 
) [virtual]

Implements TVirtualGLPainter.

char* TGLParametricPlot::GetPlotInfo ( Int_t  px,
Int_t  py 
) [virtual]

Implements TVirtualGLPainter.

void TGLParametricPlot::AddOption ( const TString option  )  [virtual]

Implements TGLPlotPainter.

void TGLParametricPlot::ProcessEvent ( Int_t  event,
Int_t  px,
Int_t  py 
) [virtual]

Implements TGLPlotPainter.

void TGLParametricPlot::InitGL (  )  const [private, virtual]

Implements TGLPlotPainter.

void TGLParametricPlot::DeInitGL (  )  const [private, virtual]

Implements TGLPlotPainter.

void TGLParametricPlot::DrawPlot (  )  const [private, virtual]

Implements TGLPlotPainter.

void TGLParametricPlot::InitColors (  )  [private]

void TGLParametricPlot::DrawSectionXOZ (  )  const [private, virtual]

Implements TGLPlotPainter.

void TGLParametricPlot::DrawSectionYOZ (  )  const [private, virtual]

Implements TGLPlotPainter.

void TGLParametricPlot::DrawSectionXOY (  )  const [private, virtual]

Implements TGLPlotPainter.

void TGLParametricPlot::SetSurfaceColor (  )  const [private]

TGLParametricPlot& TGLParametricPlot::operator= ( const TGLParametricPlot  )  [private]


Member Data Documentation

Int_t TGLParametricPlot::fMeshSize [private]

Definition at line 103 of file TGLParametric.h.

Referenced by DrawPlot(), InitColors(), InitGeometry(), and ProcessEvent().

TGL2DArray<Vertex_t> TGLParametricPlot::fMesh [private]

Definition at line 104 of file TGLParametric.h.

Referenced by DrawPlot(), InitColors(), and InitGeometry().

Bool_t TGLParametricPlot::fShowMesh [private]

Definition at line 106 of file TGLParametric.h.

Referenced by DrawPlot(), and ProcessEvent().

Int_t TGLParametricPlot::fColorScheme [private]

Definition at line 107 of file TGLParametric.h.

Referenced by DrawPlot(), InitColors(), ProcessEvent(), and SetSurfaceColor().

TGLParametricEquation* TGLParametricPlot::fEquation [private]

Definition at line 109 of file TGLParametric.h.

Referenced by InitColors(), and InitGeometry().

TGL2DArray<Vertex_t> TGLParametricPlot::fMesh [private]

Definition at line 104 of file TGLParametric.h.

TGLParametricEquation* TGLParametricPlot::fEquation [private]

Definition at line 109 of file TGLParametric.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:40:12 2011 for ROOT_528-00b_version by  doxygen 1.5.1