src/primitives.h

changeset 861
83426c5fa732
parent 844
11587d419d2f
child 927
409b82a4765e
child 945
c310073e4f22
equal deleted inserted replaced
860:a496e72af069 861:83426c5fa732
89 int m_baselen; 89 int m_baselen;
90 }; 90 };
91 91
92 extern QList<PrimitiveCategory*> g_PrimitiveCategories; 92 extern QList<PrimitiveCategory*> g_PrimitiveCategories;
93 93
94 void loadPrimitives(); 94 void LoadPrimitives();
95 PrimitiveScanner* getActivePrimitiveScanner(); 95 PrimitiveScanner* ActivePrimitiveScanner();
96 96
97 enum PrimitiveType 97 enum PrimitiveType
98 { 98 {
99 Circle, 99 Circle,
100 Cylinder, 100 Cylinder,
115 115
116 public slots: 116 public slots:
117 void hiResToggled (bool on); 117 void hiResToggled (bool on);
118 }; 118 };
119 119
120 void makeCircle (int segs, int divs, double radius, QList<QLineF>& lines); 120 void MakeCircle (int segs, int divs, double radius, QList<QLineF>& lines);
121 LDDocumentPtr generatePrimitive (PrimitiveType type, int segs, int divs, int num); 121 LDDocumentPtr GeneratePrimitive (PrimitiveType type, int segs, int divs, int num);
122 122
123 // Gets a primitive by the given specs. If the primitive cannot be found, it will 123 // Gets a primitive by the given specs. If the primitive cannot be found, it will
124 // be automatically generated. 124 // be automatically generated.
125 LDDocumentPtr getPrimitive (PrimitiveType type, int segs, int divs, int num); 125 LDDocumentPtr GetPrimitive (PrimitiveType type, int segs, int divs, int num);
126 126
127 QString radialFileName (PrimitiveType type, int segs, int divs, int num); 127 QString MakeRadialFileName (PrimitiveType type, int segs, int divs, int num);

mercurial