00001 //###################################################################### 00002 // 00003 // GraspIt! 00004 // Copyright (C) 2002-2009 Columbia University in the City of New York. 00005 // All rights reserved. 00006 // 00007 // GraspIt! is free software: you can redistribute it and/or modify 00008 // it under the terms of the GNU General Public License as published by 00009 // the Free Software Foundation, either version 3 of the License, or 00010 // (at your option) any later version. 00011 // 00012 // GraspIt! is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU General Public License 00018 // along with GraspIt!. If not, see <http://www.gnu.org/licenses/>. 00019 // 00020 // Author(s): Andrew T. Miller 00021 // 00022 // $Id: SoTorquePointer.h,v 1.2 2009/03/25 22:10:23 cmatei Exp $ 00023 // 00024 //###################################################################### 00025 00030 #include <Inventor/fields/SoSFFloat.h> 00031 #include <Inventor/nodes/SoSeparator.h> 00032 #include "SoComplexShape.h" 00033 00035 00044 class SoTorquePointer : public SoComplexShape { 00045 00046 SO_NODE_HEADER(SoTorquePointer); 00047 00048 public: 00049 00050 // Fields 00052 SoSFFloat cylRadius; 00053 00055 SoSFFloat height; 00056 00057 static void initClass(); 00058 SoTorquePointer(); 00059 00060 private: 00062 static SoSeparator *curvedArrow; 00063 00064 virtual ~SoTorquePointer(); 00065 00066 void generateChildren(); 00067 };