ROOT logo
// $Id: Rect.h 2387 2010-06-11 09:52:02Z matevz $

// Copyright (C) 1999-2008, Matevz Tadel. All rights reserved.
// This file is part of GLED, released under GNU General Public License version 2.
// For the licensing terms see $GLEDSYS/LICENSE or http://www.gnu.org/.

#ifndef Geom1_Rect_H
#define Geom1_Rect_H

#include <Glasses/ZNode.h>
#include <Stones/ZColor.h>

class Rect : public ZNode {
  MAC_RNR_FRIENDS(Rect);

private:
  void _init();

protected:
  Float_t	mULen;		// X{GS}  7 Value(-range=>[0,1000, 1,1000], -join=>1)
  Float_t	mVLen;		// X{GS}  7 Value(-range=>[0,1000, 1,1000])
  Short_t	mUStrips;	// X{GS}  7 Value(-range=>[0,10000,1], -join=>1)
  Short_t	mVStrips;	// X{GS}  7 Value(-range=>[0,10000,1])
  Float_t	mWidth;		// X{GS}  7 Value(-range=>[0,128,1,100])
  ZColor	mColor;		// X{PGS} 7 ColorButt()

public:
  Rect(const Text_t* n="Rect", const Text_t* t=0) : ZNode(n,t) { _init(); }

  void SetUV(Float_t u, Float_t v)
  { mULen = u; mVLen = v; Stamp(FID()); }
  void SetUnitSquare(UShort_t size)
  { mULen = mVLen = size; mUStrips = mVStrips = size; Stamp(FID()); }

#include "Rect.h7"
  ClassDef(Rect, 1);
}; // endclass Rect


#endif
 Rect.h:1
 Rect.h:2
 Rect.h:3
 Rect.h:4
 Rect.h:5
 Rect.h:6
 Rect.h:7
 Rect.h:8
 Rect.h:9
 Rect.h:10
 Rect.h:11
 Rect.h:12
 Rect.h:13
 Rect.h:14
 Rect.h:15
 Rect.h:16
 Rect.h:17
 Rect.h:18
 Rect.h:19
 Rect.h:20
 Rect.h:21
 Rect.h:22
 Rect.h:23
 Rect.h:24
 Rect.h:25
 Rect.h:26
 Rect.h:27
 Rect.h:28
 Rect.h:29
 Rect.h:30
 Rect.h:31
 Rect.h:32
 Rect.h:33
 Rect.h:34
 Rect.h:35
 Rect.h:36
 Rect.h:37
 Rect.h:38
 Rect.h:39
 Rect.h:40