// $Id: Planetes.cxx 2548 2011-10-10 07:03:57Z 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/. #include "Planetes.h" #include "HTriMesh.h" #include "Planetes.c7" // Planetes //______________________________________________________________________________ // // ClassImp(Planetes); //============================================================================== void Planetes::_init() { // Override settings from ZGlass bUseDispList = true; mColor.rgba(1, 0.6, 0.8); mDrawLevel = 0; } Planetes::Planetes(const Text_t* n, const Text_t* t) : ZNode(n, t) { _init(); } Planetes::~Planetes() {} //============================================================================== void Planetes::SetMesh(HTriMesh* mesh) { set_link_or_die(mMesh.ref_link(), mesh, FID()); if (*mMesh) { SetDrawLevel(mDrawLevel); } } void Planetes::SetDrawLevel(Int_t l) { Int_t l_max = (*mMesh) ? mMesh->GetMaxLevel() : 0; if (l < 0) l = 0; if (l > l_max) l = l_max; if (l != mDrawLevel) { mDrawLevel = l; StampReqTring(FID()); } }