OBJParser
OBJ File Parser Powered by Boost Spirit
 All Classes Functions Variables Enumerations Enumerator Pages
OBJGroup.hpp
1 /*
2  * Copyright 2016 Steven T Sell (ssell@vertexfragment.com)
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef __H__OBJ_PARSER_GROUP__H__
18 #define __H__OBJ_PARSER_GROUP__H__
19 
20 #include "OBJStructs.hpp"
21 
22 //------------------------------------------------------------------------------------------
23 
30 class OBJGroup
31 {
32  enum class FreeFormType
33  {
34  None = 0,
35  Curve,
36  Curve2D,
37  Surface
38  };
39 
40 public:
41 
42  OBJGroup();
43  ~OBJGroup();
44 
45  void addLine(std::vector<OBJVertexGroup> const& line);
46  void addPointCollection(std::vector<OBJVertexGroup> const& points);
47 
48  //--------------------------------------------------------------------
49 
50  std::string name;
51 
52  std::vector<OBJFace> faces;
53  std::vector<OBJLine> lines;
54  std::vector<OBJPoint> points;
55 
56  bool active;
57 
58 protected:
59 
60 private:
61 };
62 
63 //------------------------------------------------------------------------------------------
64 
65 #endif
66 
Definition: OBJGroup.hpp:30