Panda3D
 All Classes Functions Variables Enumerations
lwoSurfaceBlockTransform.h
1 // Filename: lwoSurfaceBlockTransform.h
2 // Created by: drose (24Apr01)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef LWOSURFACEBLOCKTRANSFORM_H
16 #define LWOSURFACEBLOCKTRANSFORM_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "lwoChunk.h"
21 
22 #include "luse.h"
23 
24 ////////////////////////////////////////////////////////////////////
25 // Class : LwoSurfaceBlockTransform
26 // Description : Specifies a center point, scale, or rotation for the
27 // texture coordinates in this shader's texture mapping.
28 // The type of transform is specified by the ID of the
29 // chunk; either CNTR, SIZE, or ROTA. This is a
30 // subchunk of LwoSurfaceBlockTMap.
31 ////////////////////////////////////////////////////////////////////
33 public:
34  LVecBase3 _vec;
35  int _envelope;
36 
37 public:
38  virtual bool read_iff(IffInputFile *in, size_t stop_at);
39  virtual void write(ostream &out, int indent_level = 0) const;
40 
41 public:
42  virtual TypeHandle get_type() const {
43  return get_class_type();
44  }
45  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
46  static TypeHandle get_class_type() {
47  return _type_handle;
48  }
49  static void init_type() {
50  LwoChunk::init_type();
51  register_type(_type_handle, "LwoSurfaceBlockTransform",
52  LwoChunk::get_class_type());
53  }
54 
55 private:
56  static TypeHandle _type_handle;
57 };
58 
59 #endif
60 
61 
This is the base class for all three-component vectors and points.
Definition: lvecBase3.h:105
virtual bool read_iff(IffInputFile *in, size_t stop_at)
Reads the data of the chunk in from the given input file, if possible.
A specialization of IffChunk for Lightwave Object files.
Definition: lwoChunk.h:29
A wrapper around an istream used for reading an IFF file.
Definition: iffInputFile.h:33
Specifies a center point, scale, or rotation for the texture coordinates in this shader's texture map...
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85