Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGLParametricPlot Class Reference

Definition at line 88 of file TGLParametric.h.

Classes

struct  Vertex_t
 

Public Member Functions

 TGLParametricPlot (TGLParametricEquation *equation, TGLPlotCamera *camera)
 Constructor.
 
void AddOption (const TString &option)
 No additional options for parametric surfaces.
 
char * GetPlotInfo (Int_t px, Int_t py)
 No object info yet.
 
Bool_t InitGeometry ()
 Build mesh.
 
virtual TClassIsA () const
 
void Pan (Int_t px, Int_t py)
 User's moving mouse cursor, with middle mouse button pressed (for pad).
 
void ProcessEvent (Int_t event, Int_t px, Int_t py)
 Change color/mesh size or switch on/off mesh/box cut.
 
void StartPan (Int_t px, Int_t py)
 User clicks right mouse button (in a pad).
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TGLPlotPainter
 TGLPlotPainter (TGL5DDataSet *data, TGLPlotCamera *camera, TGLPlotCoordinates *coord)
 TGLPlotPainter's ctor.
 
 TGLPlotPainter (TGLPlotCamera *camera)
 TGLPlotPainter's ctor.
 
 TGLPlotPainter (TH1 *hist, TGLPlotCamera *camera, TGLPlotCoordinates *coord, Bool_t xoySelectable, Bool_t xozSelectable, Bool_t yozSelectable)
 TGLPlotPainter's ctor.
 
Bool_t CutAxisSelected () const
 
Bool_t GetDrawAxes ()
 
void InvalidateSelection ()
 Selection must be updated.
 
virtual void Paint ()
 Draw lego/surf/whatever you can.
 
virtual Bool_t PlotSelected (Int_t px, Int_t py)
 Read color buffer content to find selected object.
 
const TGLPlotBoxRefBackBox () const
 
void SetDrawAxes (Bool_t s)
 
void SetDrawBackBox (Bool_t b)
 
void SetDrawFrontBox (Bool_t b)
 
virtual void SetFrameColor (const TColor *frameColor)
 Set plot's back box color.
 
void SetPadColor (const TColor *color)
 Used in a pad.
 
void SetPhysicalShapeColor (const Float_t *rgba)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TVirtualGLPainter
virtual ~TVirtualGLPainter ()
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TGLPlotPainter
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TVirtualGLPainter
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Private Types

enum  EMeshSize { kLow = 30 , kHigh = 150 }
 

Private Member Functions

 TGLParametricPlot (const TGLParametricPlot &)
 
void DeInitGL () const
 Initialize gl state.
 
void DrawPlot () const
 Draw parametric surface.
 
void DrawSectionXOY () const
 No such sections.
 
void DrawSectionXOZ () const
 No such sections.
 
void DrawSectionYOZ () const
 No such sections.
 
void InitColors ()
 Calculate colors for vertices, using one of 20 color themes.
 
void InitGL () const
 Initialize gl state.
 
TGLParametricPlotoperator= (const TGLParametricPlot &)
 
void SetSurfaceColor () const
 Set material properties.
 

Private Attributes

TGLPlotCoordinates fCartesianCoord
 
TAxis fCartesianXAxis
 
TAxis fCartesianYAxis
 
TAxis fCartesianZAxis
 
Int_t fColorScheme
 
TGLParametricEquationfEquation
 
TGL2DArray< Vertex_tfMesh
 
Int_t fMeshSize
 
Bool_t fShowMesh
 

Additional Inherited Members

- Public Types inherited from TGLPlotPainter
enum  ECutAxisID { kXAxis = 7 , kYAxis = 8 , kZAxis = 9 }
 
- Protected Types inherited from TGLPlotPainter
enum  ESelectionBase { kHighColorSelectionBase = 7 , kTrueColorSelectionBase = 10 }
 
- Protected Member Functions inherited from TGLPlotPainter
virtual void ClearBuffers () const
 
virtual void DrawPaletteAxis () const
 Draw. Palette. Axis.
 
void DrawSections () const
 Draw sections (if any).
 
const TColorGetPadColor () const
 Get pad color.
 
void MoveSection (Int_t px, Int_t py)
 Create dynamic profile using selected plane.
 
void PrintPlot () const
 Generate PS using gl2ps.
 
void RestoreModelviewMatrix () const
 
void RestoreProjectionMatrix () const
 
void SaveModelviewMatrix () const
 
void SaveProjectionMatrix () const
 
- Protected Attributes inherited from TGLPlotPainter
TGLPlotBox fBackBox
 
TGLBoxCut fBoxCut
 
TGLPlotCamerafCamera
 
TGLPlotCoordinatesfCoord
 
Bool_t fDrawAxes
 
Bool_t fDrawPalette
 
Bool_t fHighColor
 
TH1fHist
 
TPoint fMousePosition
 
Double_t fPadPhi
 
Double_t fPadTheta
 
const Float_tfPhysicalShapeColor
 
Int_t fSelectedPart
 
TGLSelectionBuffer fSelection
 
Int_t fSelectionBase
 
Bool_t fSelectionPass
 
Bool_t fUpdateSelection
 
TAxisfXAxis
 
Double_t fXOYSectionPos
 
Double_t fXOZSectionPos
 
TAxisfYAxis
 
Double_t fYOZSectionPos
 
TAxisfZAxis
 
std::vector< Double_tfZLevels
 

#include <TGLParametric.h>

Inheritance diagram for TGLParametricPlot:
[legend]

Member Enumeration Documentation

◆ EMeshSize

Enumerator
kLow 
kHigh 

Definition at line 96 of file TGLParametric.h.

Constructor & Destructor Documentation

◆ TGLParametricPlot() [1/2]

TGLParametricPlot::TGLParametricPlot ( TGLParametricEquation equation,
TGLPlotCamera camera 
)

Constructor.

Definition at line 297 of file TGLParametric.cxx.

◆ TGLParametricPlot() [2/2]

TGLParametricPlot::TGLParametricPlot ( const TGLParametricPlot )
private

Member Function Documentation

◆ AddOption()

void TGLParametricPlot::AddOption ( const TString option)
virtual

No additional options for parametric surfaces.

Implements TGLPlotPainter.

Definition at line 463 of file TGLParametric.cxx.

◆ Class()

static TClass * TGLParametricPlot::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGLParametricPlot::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TGLParametricPlot::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 139 of file TGLParametric.h.

◆ DeclFileName()

static const char * TGLParametricPlot::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 139 of file TGLParametric.h.

◆ DeInitGL()

void TGLParametricPlot::DeInitGL ( ) const
privatevirtual

Initialize gl state.

Implements TGLPlotPainter.

Definition at line 515 of file TGLParametric.cxx.

◆ DrawPlot()

void TGLParametricPlot::DrawPlot ( ) const
privatevirtual

Draw parametric surface.

Implements TGLPlotPainter.

Definition at line 527 of file TGLParametric.cxx.

◆ DrawSectionXOY()

void TGLParametricPlot::DrawSectionXOY ( ) const
privatevirtual

No such sections.

Implements TGLPlotPainter.

Definition at line 674 of file TGLParametric.cxx.

◆ DrawSectionXOZ()

void TGLParametricPlot::DrawSectionXOZ ( ) const
privatevirtual

No such sections.

Implements TGLPlotPainter.

Definition at line 660 of file TGLParametric.cxx.

◆ DrawSectionYOZ()

void TGLParametricPlot::DrawSectionYOZ ( ) const
privatevirtual

No such sections.

Implements TGLPlotPainter.

Definition at line 667 of file TGLParametric.cxx.

◆ GetPlotInfo()

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

No object info yet.

Implements TVirtualGLPainter.

Definition at line 454 of file TGLParametric.cxx.

◆ InitColors()

void TGLParametricPlot::InitColors ( )
private

Calculate colors for vertices, using one of 20 color themes.

-1 simple 'metal' surface.

Definition at line 640 of file TGLParametric.cxx.

◆ InitGeometry()

Bool_t TGLParametricPlot::InitGeometry ( )
virtual

Build mesh.

The surface is 'immutable': the only reason to rebuild it - the change in size or if one of equations contain reference to TF2 function, whose parameters were changed.

Implements TGLPlotPainter.

Definition at line 321 of file TGLParametric.cxx.

◆ InitGL()

void TGLParametricPlot::InitGL ( ) const
privatevirtual

Initialize gl state.

Implements TGLPlotPainter.

Definition at line 503 of file TGLParametric.cxx.

◆ IsA()

virtual TClass * TGLParametricPlot::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Reimplemented from TGLPlotPainter.

Definition at line 139 of file TGLParametric.h.

◆ operator=()

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

◆ Pan()

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

User's moving mouse cursor, with middle mouse button pressed (for pad).

Calculate 3d shift related to 2d mouse movement.

Implements TVirtualGLPainter.

Definition at line 430 of file TGLParametric.cxx.

◆ ProcessEvent()

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

Change color/mesh size or switch on/off mesh/box cut.

Left double click - remove box cut.

Implements TGLPlotPainter.

Definition at line 471 of file TGLParametric.cxx.

◆ SetSurfaceColor()

void TGLParametricPlot::SetSurfaceColor ( ) const
private

Set material properties.

Definition at line 681 of file TGLParametric.cxx.

◆ StartPan()

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

User clicks right mouse button (in a pad).

Implements TGLPlotPainter.

Definition at line 418 of file TGLParametric.cxx.

◆ Streamer()

virtual void TGLParametricPlot::Streamer ( TBuffer )
virtual

Reimplemented from TGLPlotPainter.

◆ StreamerNVirtual()

void TGLParametricPlot::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 139 of file TGLParametric.h.

Member Data Documentation

◆ fCartesianCoord

TGLPlotCoordinates TGLParametricPlot::fCartesianCoord
private

Definition at line 110 of file TGLParametric.h.

◆ fCartesianXAxis

TAxis TGLParametricPlot::fCartesianXAxis
private

Definition at line 106 of file TGLParametric.h.

◆ fCartesianYAxis

TAxis TGLParametricPlot::fCartesianYAxis
private

Definition at line 107 of file TGLParametric.h.

◆ fCartesianZAxis

TAxis TGLParametricPlot::fCartesianZAxis
private

Definition at line 108 of file TGLParametric.h.

◆ fColorScheme

Int_t TGLParametricPlot::fColorScheme
private

Definition at line 102 of file TGLParametric.h.

◆ fEquation

TGLParametricEquation* TGLParametricPlot::fEquation
private

Definition at line 104 of file TGLParametric.h.

◆ fMesh

TGL2DArray<Vertex_t> TGLParametricPlot::fMesh
private

Definition at line 99 of file TGLParametric.h.

◆ fMeshSize

Int_t TGLParametricPlot::fMeshSize
private

Definition at line 98 of file TGLParametric.h.

◆ fShowMesh

Bool_t TGLParametricPlot::fShowMesh
private

Definition at line 101 of file TGLParametric.h.

Libraries for TGLParametricPlot:

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