root/OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/AttrData.cpp @ 13041

Revision 13041, 2.5 kB (checked in by robert, 2 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
2 *
3 * This library is open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version.  The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 * OpenSceneGraph Public License for more details.
12*/
13
14//
15// OpenFlight® loader for OpenSceneGraph
16//
17//  Copyright (C) 2005-2007  Brede Johansen
18//
19
20#include "AttrData.h"
21
22using namespace flt;
23
24
25AttrData::AttrData() :
26    texels_u(0),
27    texels_v(0),
28    direction_u(0),
29    direction_v(0),
30    x_up(0),
31    y_up(0),
32    fileFormat(-1),                //   -1 Not used
33    minFilterMode(MIN_FILTER_NONE),
34    magFilterMode(MAG_FILTER_POINT),
35    wrapMode(WRAP_REPEAT),
36    wrapMode_u(WRAP_REPEAT),
37    wrapMode_v(WRAP_REPEAT),
38    modifyFlag(0),
39    pivot_x(0),
40    pivot_y(0),
41    texEnvMode(TEXENV_MODULATE),
42    intensityAsAlpha(0),
43    size_u(0),
44    size_v(0),
45    originCode(0),
46    kernelVersion(0),
47    intFormat(0),                  //    0 - Default
48    extFormat(0),                  //    0 - Default
49
50    useMips(0),
51
52    useLodScale(0),
53    lod0(0.0f),
54    scale0(1.0f),
55    lod1(0.0f),
56    scale1(1.0f),
57    lod2(0.0f),
58    scale2(1.0f),
59    lod3(0.0f),
60    scale3(1.0f),
61    lod4(0.0f),
62    scale4(1.0f),
63    lod5(0.0f),
64    scale5(1.0f),
65    lod6(0.0f),
66    scale6(1.0f),
67    lod7(0.0f),
68    scale7(1.0f),
69
70    clamp(0),
71    magFilterAlpha(2),             //    2 = None
72    magFilterColor(2),             //    2 = None
73    lambertMeridian(0),
74    lambertUpperLat(0),
75    lambertlowerLat(0),
76    useDetail(0),
77    txDetail_j(0),
78    txDetail_k(0),
79    txDetail_m(0),
80    txDetail_n(0),
81    txDetail_s(0),
82    useTile(0),
83    txTile_ll_u(0),
84    txTile_ll_v(0),
85    txTile_ur_u(0),
86    txTile_ur_v(0),
87    projection(PROJECTION_UNDEFINED),
88    earthModel(DATUM_WGS84),
89    utmZone(0),
90    imageOrigin(0),
91    geoUnits(0),
92    hemisphere(1),
93    comments(""),
94    attrVersion(0),
95    controlPoints(0)
96    // TODO:
97{
98    of_mips[0]=of_mips[1]=of_mips[2]=of_mips[3]=of_mips[4]=of_mips[5]=of_mips[6]=of_mips[7]=0.0f;
99}
100
101AttrData::AttrData(const AttrData& attr, const osg::CopyOp& copyop) :
102    osg::Object(attr,copyop)
103{}
Note: See TracBrowser for help on using the browser.