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 ] [ 10.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /visualization/OpenInventor/include/private/HEPVis/nodes/SoTrap.h (Version 11.3.0) and /visualization/OpenInventor/include/private/HEPVis/nodes/SoTrap.h (Version 5.1)


  1 //                                                  1 
  2 // *******************************************    
  3 // * License and Disclaimer                       
  4 // *                                              
  5 // * The  Geant4 software  is  copyright of th    
  6 // * the Geant4 Collaboration.  It is provided    
  7 // * conditions of the Geant4 Software License    
  8 // * LICENSE and available at  http://cern.ch/    
  9 // * include a list of copyright holders.         
 10 // *                                              
 11 // * Neither the authors of this software syst    
 12 // * institutes,nor the agencies providing fin    
 13 // * work  make  any representation or  warran    
 14 // * regarding  this  software system or assum    
 15 // * use.  Please see the license in the file     
 16 // * for the full disclaimer and the limitatio    
 17 // *                                              
 18 // * This  code  implementation is the result     
 19 // * technical work of the GEANT4 collaboratio    
 20 // * By using,  copying,  modifying or  distri    
 21 // * any work based  on the software)  you  ag    
 22 // * use  in  resulting  scientific  publicati    
 23 // * acceptance of all terms of the Geant4 Sof    
 24 // *******************************************    
 25 //                                                
 26 //                                                
 27 //                                                
 28 /*-----------------------------Hepvis---------    
 29 /*                                                
 30 /* Node:             SoTrap                       
 31 /* Description:      Represents the G4Trap Gea    
 32 /* Author:           Joe Boudreau Nov 11 1996     
 33 /*                                                
 34 /*--------------------------------------------    
 35 #ifndef HEPVis_SoTrap_h                           
 36 #define HEPVis_SoTrap_h                           
 37                                                   
 38 // Inheritance :                                  
 39 #include <Inventor/nodes/SoShape.h>               
 40                                                   
 41 #include <Inventor/fields/SoSFNode.h>             
 42 #include <Inventor/fields/SoSFBool.h>             
 43 #include <Inventor/fields/SoSFFloat.h>            
 44                                                   
 45 //adding fields                                   
 46 #ifdef WIN32                                      
 47 #include <SoWinEnterScope.h>                      
 48 #endif                                            
 49                                                   
 50                                                   
 51 // Defining Class                                 
 52 #ifdef WIN32                                      
 53 #include <SoWinLeaveScope.h>                      
 54 #endif                                            
 55                                                   
 56 class SoSFNode;                                   
 57                                                   
 58 //! SoTrap - Inventor version of the G4Trap Ge    
 59 /*! Node:          SoTrap                         
 60  *                                                
 61  * Description:    Inventor version of the G4T    
 62  *                                                
 63  * Author:     Joe Boudreau Nov 11 1996           
 64  *                                                
 65  * A G4Trap is a general trapezoid: The faces     
 66  * are tapezia, and their centres are not nece    
 67  * the z axis.                                    
 68  *                                                
 69  * Note that of the 11 parameters desribed bel    
 70  * independent - a check for planarity is made    
 71  * equation for each plane. If the planes are     
 72  * G4Exception is made.                           
 73  *                                                
 74  * Always use Inventor Fields. This allows Inv    
 75  * the data field and take the appropriate act    
 76  *                                                
 77 */                                                
 78                                                   
 79 #define SoTrap Geant4_SoTrap                      
 80                                                   
 81 class SoTrap:public SoShape {                     
 82                                                   
 83   // The following is required:                   
 84   SO_NODE_HEADER(SoTrap);                         
 85                                                   
 86 public:                                           
 87 #if defined(WIN32) && defined(BUILDING_DLL)       
 88    // When building the node as a DLL under Wi    
 89    // declare this entry point as visible outs    
 90    // BUILDING_DLL is defined in the node's so    
 91       _declspec(dllexport)                        
 92 #endif                                            
 93                                                   
 94   //                                              
 95   //! half-length along Z                         
 96   //                                              
 97   SoSFFloat pDz;                                  
 98   //                                              
 99   //! Polar angle of the line joining the cent    
100   //                                              
101   SoSFFloat pTheta;                               
102   //                                              
103   //! Azimuthal angle of the line joing the ce    
104   //! to the centre of the face at +pDz           
105   //                                              
106   SoSFFloat pPhi;                                 
107   //                                              
108   //! Half-length along y of the face at -pDz     
109   //                                              
110   SoSFFloat pDy1;                                 
111   //                                              
112   //! Half-length along x of the side at y=-pD    
113   //                                              
114   SoSFFloat pDx1;                                 
115   //                                              
116   //! Half-length along x of the side at y=+pD    
117   //                                              
118   SoSFFloat pDx2;                                 
119   //                                              
120   //! Half-length along y of the face at +pDz     
121   //                                              
122   SoSFFloat pDy2;                                 
123   //                                              
124   //! Half-length along x of the side at y=-pD    
125   //                                              
126   SoSFFloat pDx3;                                 
127   //                                              
128   //! Half-length along x of the side at y=+pD    
129   //                                              
130   SoSFFloat pDx4;                                 
131   //                                              
132   //! Angle with respect to the y axis from th    
133   //! y=-pDy1 to the centre at y=+pDy1 of the     
134   //                                              
135   SoSFFloat pAlp1;                                
136   //                                              
137   //! Angle with respect to the y axis from th    
138   //! y=-pDy2 to the centre at y=+pDy2 of the     
139   //                                              
140   SoSFFloat pAlp2;                                
141                                                   
142   //                                              
143   //! Alternate rep - required                    
144   //                                              
145   SoSFNode  alternateRep;                         
146                                                   
147   //                                              
148   //! Constructor, required                       
149   //                                              
150   SoTrap();                                       
151                                                   
152   //                                              
153   //! Class Initializer, required                 
154   //                                              
155   static void initClass();                        
156                                                   
157   //                                              
158   //! Generate AlternateRep, required.  Genera    
159   //! must be done upon users request.  It all    
160   //! back the file without requiring *this* c    
161   //! If the users expects that *this* code wi    
162   //! need not invoke this method.                
163   //                                              
164   virtual void generateAlternateRep();            
165                                                   
166   //                                              
167   //! We better be able to clear it, too!         
168   //                                              
169   virtual void clearAlternateRep();               
170                                                   
171 protected:                                        
172                                                   
173   //                                              
174   //! compute bounding Box, required              
175   //                                              
176   virtual void computeBBox(SoAction *action, S    
177                                                   
178   //                                              
179   //! Generate Primitives, required               
180   //                                              
181   virtual void generatePrimitives(SoAction *ac    
182                                                   
183   //                                              
184   //! GetChildList, required whenever the clas    
185   //                                              
186   virtual SoChildList *getChildren() const;       
187                                                   
188   //                                              
189   //! Destructor, required                        
190   //                                              
191   virtual ~SoTrap();                              
192                                                   
193 private:                                          
194                                                   
195   //                                              
196   //! Generate Children. Used to create the hi    
197   //! the node has hidden children.               
198   //                                              
199   void generateChildren();                        
200                                                   
201   //                                              
202   //! Used to modify hidden children when a da    
203   //! whenever the class has hidden children.     
204   //                                              
205   void updateChildren();                          
206                                                   
207   //                                              
208   //! ChildList. Required whenever the class h    
209   //                                              
210   SoChildList *children;                          
211                                                   
212 };                                                
213                                                   
214 #ifdef WIN32                                      
215 #include <SoWinEnterScope.h>                      
216 #endif                                            
217                                                   
218 #endif                                            
219