Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TGLPolyMarker.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/gl:$Id$
0002 // Author:  Timur Pocheptsov  03/08/2004
0003 // NOTE: This code moved from obsoleted TGLSceneObject.h / .cxx - see these
0004 // attic files for previous CVS history
0005 
0006 /*************************************************************************
0007  * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers.               *
0008  * All rights reserved.                                                  *
0009  *                                                                       *
0010  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0011  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0012  *************************************************************************/
0013 
0014 #ifndef ROOT_TGLPolyMarker
0015 #define ROOT_TGLPolyMarker
0016 
0017 #include "TGLLogicalShape.h"
0018 
0019 #include <vector>
0020 
0021 class TBuffer3D;
0022 
0023 ////////////////////////////////////////////////////////////////////////
0024 class TGLPolyMarker : public TGLLogicalShape
0025 {
0026 private:
0027    std::vector<Double_t> fVertices;
0028    UInt_t   fStyle;
0029    Double_t fSize;
0030 
0031 public:
0032    TGLPolyMarker(const TBuffer3D & buffer);
0033 
0034    void DirectDraw(TGLRnrCtx & rnrCtx) const override;
0035 
0036    Bool_t   IgnoreSizeForOfInterest() const override { return kTRUE; }
0037 
0038 private:
0039    void DrawStars()const;
0040 
0041    ClassDefOverride(TGLPolyMarker,0) // a polymarker logical shape
0042 };
0043 
0044 #endif