| 1 | /* |
| 2 | * MoleculesToTriangles/CXXClasses/oglPolyhedron.h |
| 3 | * |
| 4 | * Copyright 2009 by Martin Noble, University of Oxford |
| 5 | * Author: Martin Noble |
| 6 | * |
| 7 | * This file is part of Coot |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or modify |
| 10 | * it under the terms of the GNU Lesser General Public License as published |
| 11 | * by the Free Software Foundation; either version 3 of the License, or (at |
| 12 | * your option) any later version. |
| 13 | * |
| 14 | * This program is distributed in the hope that it will be useful, but |
| 15 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 | * General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public License |
| 20 | * along with this program; if not, write to the Free Software |
| 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
| 22 | * 02110-1301, USA |
| 23 | */ |
| 24 | |
| 25 | #ifndef oglPolyhedron_H |
| 26 | #define oglPolyhedron_Hcxx . . $ `MoleculesToTriangles/CXXClasses/oglPolyhedron.h:26:9`! |
| 27 | #include <memory> |
| 28 | |
| 29 | #include "Polyhedron.h"cxx . . $ `<file>/MoleculesToTriangles/CXXClasses/Polyhedron.h`/ |
| 30 | #include "VertexColorNormalPrimitive.h"cxx . . $ `<file>/MoleculesToTriangles/CXXClasses/VertexColorNormalPrimitive.h`/ |
| 31 | |
| 32 | class Renderercxx . . $ Renderer#; |
| 33 | |
| 34 | //unsigned short for OpenGL ES |
| 35 | |
| 36 | class oglPolyhedroncxx . . $ oglPolyhedron# : public Polyhedroncxx . . $ Polyhedron#, public VertexColorNormalPrimitivecxx . . $ VertexColorNormalPrimitive# { |
| 37 | private: |
| 38 | //Temporary varaiables to hold instantaneous values |
| 39 | FCXXCoordcxx . . $ FCXXCoord# centrecxx . . $ oglPolyhedron#centre.; |
| 40 | FCXXCoordcxx . . $ FCXXCoord# colorcxx . . $ oglPolyhedron#color.; |
| 41 | float radiuscxx . . $ oglPolyhedron#radius.; |
| 42 | public: |
| 43 | static stdcxx . . $ std/::mapcxx . . $ std/map#<Polyhedroncxx . . $ Polyhedron#::PolyhedronTypecxx . . $ Polyhedron#PolyhedronType#, oglPolyhedroncxx . . $ oglPolyhedron# *> globalPolyhedracxx . . $ oglPolyhedron#globalPolyhedra.; |
| 44 | oglPolyhedroncxx . . $ oglPolyhedron#oglPolyhedron(49f6e7a06ebc5aa8).(); |
| 45 | virtual ~cxx . . $ oglPolyhedron#`~oglPolyhedron`(ced63f7c635d850d).oglPolyhedroncxx . . $ oglPolyhedron#(){ |
| 46 | }; |
| 47 | const float getRadiuscxx . . $ oglPolyhedron#getRadius(2c628458cb0d6433).() const { |
| 48 | return radiuscxx . . $ oglPolyhedron#radius.; |
| 49 | }; |
| 50 | void setRadiuscxx . . $ oglPolyhedron#setRadius(733da83e8cfbc73e).(const float &_radius){ |
| 51 | radiuscxx . . $ oglPolyhedron#radius. = _radius; |
| 52 | }; |
| 53 | const FCXXCoordcxx . . $ FCXXCoord# &getCentrecxx . . $ oglPolyhedron#getCentre(fbfbd0f2d3e02445).() const { |
| 54 | return centrecxx . . $ oglPolyhedron#centre.; |
| 55 | }; |
| 56 | void setCentrecxx . . $ oglPolyhedron#setCentre(61fa16a37463201d).(const FCXXCoordcxx . . $ FCXXCoord# &_centre) { |
| 57 | centrecxx . . $ oglPolyhedron#centre. =cxx . . $ CXXCoord#`operator=`(7dc8cf2d227833df). _centre; |
| 58 | }; |
| 59 | const FCXXCoordcxx . . $ FCXXCoord# &getColorcxx . . $ oglPolyhedron#getColor(fbfbd0f2d3e02445).() const { |
| 60 | return colorcxx . . $ oglPolyhedron#color.; |
| 61 | }; |
| 62 | void setColorcxx . . $ oglPolyhedron#setColor(61fa16a37463201d). (const FCXXCoordcxx . . $ FCXXCoord# &_color){ |
| 63 | colorcxx . . $ oglPolyhedron#color. =cxx . . $ CXXCoord#`operator=`(7dc8cf2d227833df). _color; |
| 64 | }; |
| 65 | virtual void generateArrayscxx . . $ oglPolyhedron#generateArrays(49f6e7a06ebc5aa8).(); |
| 66 | virtual void renderWithRenderercxx . . $ oglPolyhedron#renderWithRenderer(b2fcae2479a08eb4).(stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<Renderercxx . . $ Renderer#> renderer); |
| 67 | static oglPolyhedroncxx . . $ oglPolyhedron# *octaHedroncxx . . $ oglPolyhedron#octaHedron(866d4e89ca078100). (); |
| 68 | static oglPolyhedroncxx . . $ oglPolyhedron# *dodecaHedroncxx . . $ oglPolyhedron#dodecaHedron(866d4e89ca078100). (); |
| 69 | static oglPolyhedroncxx . . $ oglPolyhedron# *dodecaHedron4cxx . . $ oglPolyhedron#dodecaHedron4(866d4e89ca078100). (); |
| 70 | static oglPolyhedroncxx . . $ oglPolyhedron# *dodecaHedron16cxx . . $ oglPolyhedron#dodecaHedron16(866d4e89ca078100). (); |
| 71 | }; |
| 72 | |
| 73 | |
| 74 | #endif |