ROOT logo
// $Id: ZRlFont.h 2359 2010-03-24 20:29:39Z 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 GledCore_ZRlFont_H
#define GledCore_ZRlFont_H

#include <Glasses/ZRnrModBase.h>
#include <Eye/Ray.h>

class ZRlFont : public ZRnrModBase
{
  // 7777 RnrCtrl(RnrBits(0,4,0,0))
  MAC_RNR_FRIENDS(ZRlFont);

public:
  enum FontMode_e { FM_Bitmap,  FM_Pixmap,  FM_Texture,
		    FM_Outline, FM_Polygon, FM_Extrude };	

private:
  enum PrivRayQN_e  { PRQN_offset = RayNS::RQN_user_0,
		      PRQN_font_change,
		      PRQN_size_change,
		      PRQN_depth_change		      
  };

  void _init();

protected:
  FontMode_e    mMode;        // X{GST} Ray{FontChange}  7 PhonyEnum()
  TString	mFontFile;    // X{GET}                  7 Filor(-pat=>"*.ttf")
  Int_t         mSize;        // X{GST} Ray{SizeChange}  7 Value(-range=>[4,512,1])
  Float_t       mDepthFac;    // X{GST} Ray{DepthChange} 7 Value(-range=>[0,10, 1,100])

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

  void SetFontFile(const Text_t* f);

  void EmitFontChangeRay();
  void EmitSizeChangeRay();
  void EmitDepthChangeRay();

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


#endif
 ZRlFont.h:1
 ZRlFont.h:2
 ZRlFont.h:3
 ZRlFont.h:4
 ZRlFont.h:5
 ZRlFont.h:6
 ZRlFont.h:7
 ZRlFont.h:8
 ZRlFont.h:9
 ZRlFont.h:10
 ZRlFont.h:11
 ZRlFont.h:12
 ZRlFont.h:13
 ZRlFont.h:14
 ZRlFont.h:15
 ZRlFont.h:16
 ZRlFont.h:17
 ZRlFont.h:18
 ZRlFont.h:19
 ZRlFont.h:20
 ZRlFont.h:21
 ZRlFont.h:22
 ZRlFont.h:23
 ZRlFont.h:24
 ZRlFont.h:25
 ZRlFont.h:26
 ZRlFont.h:27
 ZRlFont.h:28
 ZRlFont.h:29
 ZRlFont.h:30
 ZRlFont.h:31
 ZRlFont.h:32
 ZRlFont.h:33
 ZRlFont.h:34
 ZRlFont.h:35
 ZRlFont.h:36
 ZRlFont.h:37
 ZRlFont.h:38
 ZRlFont.h:39
 ZRlFont.h:40
 ZRlFont.h:41
 ZRlFont.h:42
 ZRlFont.h:43
 ZRlFont.h:44
 ZRlFont.h:45
 ZRlFont.h:46
 ZRlFont.h:47
 ZRlFont.h:48
 ZRlFont.h:49
 ZRlFont.h:50
 ZRlFont.h:51
 ZRlFont.h:52