1 /* 2 * RenderApp.h 3 * 4 * Copyright (C) 1999 Stephen F. White, 2003 J. "MUFTI" Scheurich 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program (see the file "COPYING" for details); if 18 * not, write to the Free Software Foundation, Inc., 675 Mass Ave, 19 * Cambridge, MA 02139, USA. 20 */ 21 22 #pragma once 23 24 #include "swttypedef.h" 25 #include "MyString.h" 26 #include "StringArray.h" 27 28 class RenderApp { 29 public: 30 RenderApp(); 31 32 void RenderLoadPreferences(); 33 void RenderSavePreferences(void); 34 35 // PreferencesApp data GetPointSetSize(void)36 float GetPointSetSize(void) { return m_pointSetSize; } GetShowAllFields()37 bool GetShowAllFields() const { return m_showAllFields; } GetNearClippingPlaneDist(void)38 float GetNearClippingPlaneDist(void) 39 { return m_nearClippingPlaneDist; } GetFarClippingPlaneDist(void)40 float GetFarClippingPlaneDist(void) 41 { return m_farClippingPlaneDist; } GetMaxInlinesToLoad(void)42 int GetMaxInlinesToLoad(void) 43 { return m_maxInlinesToLoad; } GetMaxKeysInChannelView(void)44 int GetMaxKeysInChannelView(void) 45 { return m_maxKeysInChannelView; } 46 47 void SetPointSetSize(float size); 48 void SetShowAllFields(bool s); SetNearClippingPlaneDist(float dist)49 void SetNearClippingPlaneDist(float dist) 50 { m_nearClippingPlaneDist = dist; } SetFarClippingPlaneDist(float dist)51 void SetFarClippingPlaneDist(float dist) 52 { m_farClippingPlaneDist = dist; } SetMaxInlinesToLoad(int max)53 void SetMaxInlinesToLoad(int max) 54 { m_maxInlinesToLoad = max; } SetMaxKeysInChannelView(int max)55 void SetMaxKeysInChannelView(int max) 56 { m_maxKeysInChannelView = max; } 57 58 void RenderDefaults(); 59 60 private: 61 62 bool m_showAllFields; 63 float m_pointSetSize; 64 float m_nearClippingPlaneDist; 65 float m_farClippingPlaneDist; 66 int m_maxInlinesToLoad; 67 int m_maxKeysInChannelView; 68 bool m_renderNicerSlower; 69 }; 70 71