OpenVDB  0.104.0
openvdb.h
Go to the documentation of this file.
1 
2 //
3 // Copyright (c) 2012 DreamWorks Animation LLC
4 //
5 // All rights reserved. This software is distributed under the
6 // Mozilla Public License 2.0 ( http://www.mozilla.org/MPL/2.0/ )
7 //
8 // Redistributions of source code must retain the above copyright
9 // and license notice and the following restrictions and disclaimer.
10 //
11 // * Neither the name of DreamWorks Animation nor the names of
12 // its contributors may be used to endorse or promote products derived
13 // from this software without specific prior written permission.
14 //
15 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY INDIRECT, INCIDENTAL,
20 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 // IN NO EVENT SHALL THE COPYRIGHT HOLDERS' AND CONTRIBUTORS' AGGREGATE
27 // LIABILITY FOR ALL CLAIMS REGARDLESS OF THEIR BASIS EXCEED US$250.00.
28 //
30 
31 #ifndef OPENVDB_INIT_HAS_BEEN_INCLUDED
32 #define OPENVDB_INIT_HAS_BEEN_INCLUDED
33 
34 #include "Types.h"
35 #include "Metadata.h"
36 #include "math/Maps.h"
37 #include "math/Transform.h"
38 #include "Grid.h"
39 #include "tree/Tree.h"
40 #include "io/File.h"
41 #include "Platform.h"
42 
43 
44 namespace openvdb {
46 namespace OPENVDB_VERSION_NAME {
47 
67 
83 
84 
86 OPENVDB_API inline
87 void initialize()
88 {
89  // Register metadata.
105 
106  // Register maps
107  math::MapRegistry::clear();
108  math::AffineMap::registerMap();
109  math::UnitaryMap::registerMap();
110  math::ScaleMap::registerMap();
111  math::UniformScaleMap::registerMap();
112  math::TranslationMap::registerMap();
113  math::ScaleTranslateMap::registerMap();
114  math::UniformScaleTranslateMap::registerMap();
115  math::NonlinearFrustumMap::registerMap();
116 
117  // Register common grid types.
129 }
130 
131 
133 OPENVDB_API inline
135 {
138  math::MapRegistry::clear();
139 }
140 
141 } // namespace OPENVDB_VERSION_NAME
142 } // namespace openvdb
143 
144 #endif // OPENVDB_INIT_HAS_BEEN_INCLUDED
145 
146 // Copyright (c) 2012 DreamWorks Animation LLC
147 // All rights reserved. This software is distributed under the
148 // Mozilla Public License 2.0 ( http://www.mozilla.org/MPL/2.0/ )