Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

chancfg.cxx File Reference

#include "chancfg.h"
#include "notify.h"
#include "displayRegion.h"
#include "graphicsPipe.h"
#include "graphicsEngine.h"
#include "graphicsChannel.h"
#include "hardwareChannel.h"
#include "camera.h"
#include "frustum.h"
#include "perspectiveLens.h"
#include "dSearchPath.h"
#include "dconfig.h"
#include "filename.h"
#include "transformState.h"
#include "dcast.h"
#include "config_express.h"
#include "virtualFileSystem.h"
#include <algorithm>
#include <stdio.h>

Go to the source code of this file.

Functions

 Configure (chanconfig)
 ConfigureFn (chanconfig)
 NotifyCategoryDef (chancfg,"")
bool load_chancfg_database (const string &filename, const DSearchPath &path, const string &type_desc, void(*parser_func)(istream &))
void ReadChanConfigData (void)
INLINE bool LayoutDefined (std::string sym)
INLINE bool SetupDefined (std::string sym)
INLINE bool ConfigDefined (std::string sym)
bool ChanCheckLayouts (SetupSyms &S)
bool ChanCheckSetups (SetupSyms &S)
INLINE ChanViewport ChanScaleViewport (const ChanViewport &parent, const ChanViewport &child)
SetupFOV ChanResolveFOV (SetupFOV &fov, float sizeX, float sizeY)

Variables

bool have_read = false
const bool config_sanity_check
ChanCfgOverrides ChanOverrideNone


Function Documentation

bool ChanCheckLayouts SetupSyms S  ) 
 

Definition at line 158 of file chancfg.cxx.

References LayoutDefined().

bool ChanCheckSetups SetupSyms S  ) 
 

Definition at line 169 of file chancfg.cxx.

References SetupDefined().

SetupFOV ChanResolveFOV SetupFOV fov,
float  sizeX,
float  sizeY
 

Definition at line 201 of file chancfg.cxx.

References SetupFOV::Both, SetupFOV::Default, deg_2_rad(), SetupFOV::getHoriz(), SetupFOV::getType(), SetupFOV::getVert(), SetupFOV::Horizontal, rad_2_deg(), and SetupFOV::setFOV().

Referenced by ChanConfig::chan_eval().

INLINE ChanViewport ChanScaleViewport const ChanViewport parent,
const ChanViewport child
 

Definition at line 181 of file chancfg.cxx.

References ChanViewport::bottom(), ChanViewport::left(), ChanViewport::right(), ChanViewport::top(), and v.

Referenced by ChanConfig::chan_eval().

INLINE bool ConfigDefined std::string  sym  ) 
 

Definition at line 153 of file chancfg.cxx.

References NULL, WindowDB, and WindowType.

Configure chanconfig   ) 
 

ConfigureFn chanconfig   ) 
 

Definition at line 43 of file chancfg.cxx.

INLINE bool LayoutDefined std::string  sym  ) 
 

Definition at line 143 of file chancfg.cxx.

References LayoutDB, LayoutType, and NULL.

Referenced by ChanCheckLayouts().

bool load_chancfg_database const string &  filename,
const DSearchPath &  path,
const string &  type_desc,
void(*  parser_func)(istream &)
[static]
 

Definition at line 50 of file chancfg.cxx.

References VirtualFileSystem::get_global_ptr(), NULL, VirtualFileSystem::open_read_file(), and VirtualFileSystem::resolve_filename().

Referenced by ReadChanConfigData().

NotifyCategoryDef chancfg  ,
"" 
 

void ReadChanConfigData void   )  [static]
 

Definition at line 109 of file chancfg.cxx.

References load_chancfg_database(), ParseLayout(), ParseSetup(), ParseWindow(), ResetLayout(), ResetSetup(), and ResetWindow().

INLINE bool SetupDefined std::string  sym  ) 
 

Definition at line 148 of file chancfg.cxx.

References NULL, SetupDB, and SetupType.

Referenced by ChanCheckSetups().


Variable Documentation

ChanCfgOverrides ChanOverrideNone
 

Definition at line 141 of file chancfg.cxx.

const bool config_sanity_check [static]
 

Initial value:

  chanconfig.GetBool("chan-config-sanity-check", false)

Definition at line 138 of file chancfg.cxx.

bool have_read = false [static]
 

Definition at line 46 of file chancfg.cxx.


Generated on Fri Apr 18 00:10:26 2003 for Panda by doxygen1.3