Logo ROOT   6.14/05
Reference Guide
TGLPolyMarker.h
Go to the documentation of this file.
1 // @(#)root/gl:$Id$
2 // Author: Timur Pocheptsov 03/08/2004
3 // NOTE: This code moved from obsoleted TGLSceneObject.h / .cxx - see these
4 // attic files for previous CVS history
5 
6 /*************************************************************************
7  * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. *
8  * All rights reserved. *
9  * *
10  * For the licensing terms see $ROOTSYS/LICENSE. *
11  * For the list of contributors see $ROOTSYS/README/CREDITS. *
12  *************************************************************************/
13 
14 #ifndef ROOT_TGLPolyMarker
15 #define ROOT_TGLPolyMarker
16 
17 #include "TGLLogicalShape.h"
18 
19 #include <vector>
20 
21 class TBuffer3D;
22 
23 ////////////////////////////////////////////////////////////////////////
25 {
26 private:
27  std::vector<Double_t> fVertices;
30 
31 public:
32  TGLPolyMarker(const TBuffer3D & buffer);
33 
34  virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
35 
36  virtual Bool_t IgnoreSizeForOfInterest() const { return kTRUE; }
37 
38 private:
39  void DrawStars()const;
40 
41  ClassDef(TGLPolyMarker,0) // a polymarker logical shape
42 };
43 
44 #endif
std::vector< Double_t > fVertices
Definition: TGLPolyMarker.h:27
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition: TGLRnrCtx.h:40
bool Bool_t
Definition: RtypesCore.h:59
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Debug tracing.
#define ClassDef(name, id)
Definition: Rtypes.h:320
To draw a 3D polymarker in a GL window.
Definition: TGLPolyMarker.h:24
Double_t fSize
Definition: TGLPolyMarker.h:29
unsigned int UInt_t
Definition: RtypesCore.h:42
Generic 3D primitive description class.
Definition: TBuffer3D.h:17
Abstract logical shape - a GL &#39;drawable&#39; - base for all shapes - faceset sphere etc.
double Double_t
Definition: RtypesCore.h:55
TGLPolyMarker(const TBuffer3D &buffer)
TAttMarker is not TObject descendant, so I need dynamic_cast.
void DrawStars() const
Draw stars.
const Bool_t kTRUE
Definition: RtypesCore.h:87
virtual Bool_t IgnoreSizeForOfInterest() const
Return true if size of this shape should be ignored when determining if the object should be drawn...
Definition: TGLPolyMarker.h:36