| 46 | 
  | 
 | 
| 47 | 
  | 
namespace oopse { | 
| 48 | 
  | 
 | 
| 49 | 
– | 
    struct OrderParam{ | 
| 50 | 
– | 
        double p2; | 
| 51 | 
– | 
        Vector3d director; | 
| 52 | 
– | 
        double angle; | 
| 53 | 
– | 
    }; | 
| 49 | 
  | 
    class P2OrderParameter : public StaticAnalyser{ | 
| 50 | 
  | 
        public: | 
| 51 | 
  | 
            P2OrderParameter(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2); | 
| 52 | 
  | 
            virtual void process(); | 
| 53 | 
  | 
 | 
| 54 | 
  | 
        private: | 
| 60 | 
– | 
            void writeOrderParam(); | 
| 55 | 
  | 
 | 
| 56 | 
< | 
            SimInfo* info_; | 
| 56 | 
> | 
            struct OrderParam{ | 
| 57 | 
> | 
                RealType p2; | 
| 58 | 
> | 
                Vector3d director; | 
| 59 | 
> | 
                RealType angle; | 
| 60 | 
> | 
            };             | 
| 61 | 
> | 
            void writeP2(); | 
| 62 | 
> | 
 | 
| 63 | 
  | 
            Snapshot* currentSnapshot_; | 
| 64 | 
< | 
            std::string dumpFilename_; | 
| 65 | 
< | 
            std::string outputFilename_; | 
| 64 | 
> | 
 | 
| 65 | 
  | 
            std::string selectionScript1_; | 
| 66 | 
  | 
            std::string selectionScript2_; | 
| 67 | 
  | 
            SelectionManager seleMan1_; |