Panda3D
lwoSurfaceBlockRepeat.h
1 // Filename: lwoSurfaceBlockRepeat.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 LWOSURFACEBLOCKREPEAT_H
16 #define LWOSURFACEBLOCKREPEAT_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "lwoChunk.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : LwoSurfaceBlockRepeat
24 // Description : For cylindrical and spherical projections, this
25 // parameter controls how many times the image repeats
26 // over each full interval, in either dimension. The
27 // dimension is specified by the id of the chunk, either
28 // WRPW or WRPH. This is a subchunk of LwoSurfaceBlock.
29 ////////////////////////////////////////////////////////////////////
31 public:
32  PN_stdfloat _cycles;
33  int _envelope;
34 
35 public:
36  virtual bool read_iff(IffInputFile *in, size_t stop_at);
37  virtual void write(ostream &out, int indent_level = 0) const;
38 
39 public:
40  virtual TypeHandle get_type() const {
41  return get_class_type();
42  }
43  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
44  static TypeHandle get_class_type() {
45  return _type_handle;
46  }
47  static void init_type() {
48  LwoChunk::init_type();
49  register_type(_type_handle, "LwoSurfaceBlockRepeat",
50  LwoChunk::get_class_type());
51  }
52 
53 private:
54  static TypeHandle _type_handle;
55 };
56 
57 #endif
58 
59 
For cylindrical and spherical projections, this parameter controls how many times the image repeats o...
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
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85