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

LWSceneOptions.cpp

Go to the documentation of this file.
00001 
00002 /*
00003     TEDDY - General graphics application library
00004     Copyright (C) 1999-2002  Timo Suoranta
00005     tksuoran@cc.helsinki.fi
00006 
00007     This library is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU Lesser General Public
00009     License as published by the Free Software Foundation; either
00010     version 2.1 of the License, or (at your option) any later version.
00011 
00012     This library is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015     Lesser General Public License for more details.
00016 
00017     You should have received a copy of the GNU Lesser General Public
00018     License along with this library; if not, write to the Free Software
00019     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 
00021     $Id: LWSceneOptions.cpp,v 1.1 2002/02/16 12:41:39 tksuoran Exp $
00022 */
00023 
00024 
00025 #include "Teddy/TeddyConfig.h"
00026 #if defined( TEDDY_INCLUDE_LW_SCENE )
00027 
00028 
00029 #include "Teddy/Imports/LWSceneFile.h"
00030 #include "Teddy/Imports/LWSceneParser.h"
00031 
00032 
00033 namespace Teddy   {
00034 namespace Imports {
00035 
00036 
00037 void LWSceneParser::ViewConfiguration(){
00038     int view_configuration = file->read_int();
00039 }
00040 
00041 
00042 void LWSceneParser::DefineView(){
00043     int define_view = file->read_int();
00044 }
00045 
00046 
00047 /*
00048     ViewMode <value>
00049 
00050     example:  ViewMode 5
00051 
00052     The ViewMode function determines the default viewing mode from Layout when 
00053     the scene file is loaded.
00054 
00055     <value>:
00056         0 - Front
00057         1 - Top
00058         2 - Side
00059         3 - Perspective
00060         4 - Light
00061         5 - Camera
00062 */
00063 void LWSceneParser::ViewMode(){
00064     int view_mode = file->read_int();
00065 }
00066 
00067 
00068 /*
00069     ViewAimpoint <x position> <y position> <z position>
00070 
00071     example:  ViewAimpoint 0.000000 0.000000 0.000000
00072 
00073     The ViewAimpoint function provides the position information for the 
00074     default viewing mode from Layout when the scene file is loaded.
00075 */
00076 void LWSceneParser::ViewAimpoint(){
00077     double x = file->read_double();
00078     double y = file->read_double();
00079     double z = file->read_double();
00080 }
00081 
00082 
00083 /*
00084     ViewDirection <heading angle> <pitch angle> <bank angle>
00085 
00086     example:  ViewDirection 0.000000 -0.175433 0.000000
00087 
00088     The ViewDirection provides the rotation information for the default 
00089     viewing mode from Layout when the scene file is loaded.
00090 */
00091 void LWSceneParser::ViewRotation(){
00092     double h = file->read_double();
00093     double p = file->read_double();
00094     double b = file->read_double();
00095 }
00096 
00097 
00098 /*
00099     ViewZoomFactor <float>
00100 
00101     example:  ViewZoomFactor 3.200000
00102 
00103     The ViewZoomFactor function provides the zoom factor for the default 
00104     viewing mode from Layout when the scene file is loaded.
00105 */
00106 void LWSceneParser::ViewZoomFactor(){
00107     double view_zoon_factor = file->read_double();
00108 }
00109 
00110 
00111 /*
00112     LayoutGrid <value>
00113 
00114     example:  LayoutGrid 8
00115 
00116     The LayoutGrid function determines the number of grid squares in Layout.
00117 
00118     <value>:
00119         0 - Off
00120         1 - 2 x 2
00121         2 - 4 x 4
00122         3 - 6 x 6
00123         4 - 8 x 8
00124         5 - 10 x 10
00125         6 - 12 x 12
00126         7 - 14 x 14
00127         8 - 16 x 16
00128 */
00129 void LWSceneParser::LayoutGrid(){
00130     int layout_grid = file->read_int();
00131     grid_number = layout_grid * 2;
00132 }
00133 
00134 
00135 void LWSceneParser::GridNumber(){
00136     grid_number = file->read_int();
00137 }
00138 
00139 /*
00140     GridSize <float>
00141 
00142     example:  GridSize 1.000000
00143 
00144     The GridSize function  provides the value, in meters, for the grid square 
00145     size in Layout.
00146 */
00147 void LWSceneParser::GridSize(){
00148     grid_size = file->read_double();
00149 }
00150 
00151 void LWSceneParser::CameraViewBG(){
00152     int camera_view_bg = file->read_int();
00153 }
00154 
00155 
00156 /*
00157     ShowMotionPath <flag>
00158 
00159     example:  ShowMotionPath 1
00160 
00161     The ShowMotionPath flag controls the display of the motion paths in Layout.
00162 
00163     <flag>:
00164         0 - Off
00165         1 - On
00166 */
00167 void LWSceneParser::ShowMotionPath(){
00168     int show_motion_path = file->read_int();
00169 }
00170 
00171 
00172 /*
00173     ShowSafeAreas <flag>
00174 
00175     example:  ShowSafeAreas 1
00176 
00177     The ShowSafeAreas flag controls the display of the safe areas overlay in Layout.
00178 
00179     <flag>:
00180         0 - Off
00181         1 - On (Display Safe Area Chart)
00182 */
00183 void LWSceneParser::ShowSafeAreas(){
00184     int show_safe_areas = file->read_int();
00185 }
00186 
00187 
00188 /*
00189     ShowBGImage <value>
00190 
00191     example:  ShowBGImage 2
00192 
00193     The ShowBGImage function activates the display of a background image or 
00194     preview anim.
00195 
00196     <value>:
00197         0 - Blank
00198         1 - BG Image
00199         2 - Preview
00200 */
00201 void LWSceneParser::ShowBGImage(){
00202     int show_bg_image = file->read_int();
00203 }
00204 
00205 /*
00206     ShowFogRadius <flag>
00207 
00208     example:  ShowFogRadius 1
00209 
00210     The ShowFogRadius flag activates the display of the fog radius in Layout.
00211 
00212     <flag>:
00213         0 - Off
00214         1 - On (Display Fog Radius)
00215 */
00216 void LWSceneParser::ShowFogRadius(){
00217     int show_fog_radius = file->read_int();
00218 }
00219 
00220 
00221 void LWSceneParser::ShowFogEffect(){
00222     int show_fog_effect = file->read_int();
00223 }
00224 
00225 /*
00226     ShowRedraw <flag>
00227 
00228     example:  ShowRedraw 0
00229 
00230     The ShowRedraw flag activates the display of the object polygon redraw 
00231     in Layout.
00232 
00233     <flag>:
00234         0 - Off
00235         1 - On (Display Object Polygon Redraw)
00236 */
00237 void LWSceneParser::ShowRedraw(){
00238     int show_redraw = file->read_int();
00239 }
00240 
00241 
00242 /*
00243     ShowFieldChart <flag>
00244 
00245     example:  ShowFieldChart 1
00246 
00247     The ShowFieldChart flag activates the display of the Camera Field Chart 
00248     in Layout.
00249 
00250     <flag>:
00251         0 - Off
00252         1 - On (Display Field Chart)
00253 */
00254 void LWSceneParser::ShowFieldChart(){
00255     int show_field_chart = file->read_int();
00256 }
00257 
00258 void LWSceneParser::CurrentObject(){
00259     int current_object = file->read_int();
00260 }
00261 
00262 void LWSceneParser::CurrentLight(){
00263     int current_light = file->read_int();
00264 }
00265 
00266 void LWSceneParser::CurrentCamera(){
00267     int current_camera = file->read_int();
00268 }
00269 
00270 void LWSceneParser::GraphEditorData(){}
00271 void LWSceneParser::GraphEditorFavorites(){
00272     file->read_begin_scope();
00273     file->read_end_scope();
00274 }
00275 
00276 
00277 };  //  namespace Imports
00278 };  //  namespace Teddy
00279 
00280 
00281 #endif  //  TEDDY_INCLUDE_LW_SCENE
00282 
00283 
00284 /*
00285 
00286   The Options Section contains the information that relates to environment 
00287   settings for LightWave's Layout.
00288 
00289 
00290         ViewMode
00291         ViewAimpoint
00292         ViewDirection
00293         ViewZoomFactor
00294         LayoutGrid
00295         GridSize
00296         ShowMotionPath
00297         ShowSafeAreas
00298         ShowBGImage
00299         ShowFogRadius
00300         ShowRedraw
00301         ShowFieldChart
00302 */
00303