ROOT logo
// $Id: WGlValuator.cxx 2088 2008-11-23 20:26:46Z 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/.

//__________________________________________________________________________
// WGlValuator
//
// In principle should install Alpha-Observer ... but pupils are ROARs sofar.

#include "WGlValuator.h"
#include "WGlValuator.c7"

#include <TClass.h>
#include <TRealData.h>

ClassImp(WGlValuator);

/**************************************************************************/

void WGlValuator::_init()
{
  mMin   = -1000; mMax   = 1000;
  mStepA =  1;    mStepB = 1;
  mFormat = "%6.2f";

  bConstVal = false;

  mDataMemberInfo = 0; mDataMember = 0;
}

/**************************************************************************/

GledNS::DataMemberInfo* WGlValuator::GetDataMemberInfo()
{
  if(mDataMemberInfo == 0)
    mDataMemberInfo = GledNS::DeduceDataMemberInfo(*mCbackAlpha, mCbackMemberName.Data());
  return mDataMemberInfo;
}

TDataMember* WGlValuator::GetDataMember()
{
  if(mDataMember == 0 && mCbackAlpha != 0) {
    if(GetDataMemberInfo() == 0)
      return 0;
    mDataMember = mDataMemberInfo->GetTDataMember();
  }
  return mDataMember;
}

Bool_t WGlValuator::DataOK()
{
  return (GetDataMemberInfo() != 0 && GetDataMember() != 0);
}

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