![]() |
http://www.sim.no http://www.coin3d.org |
00001 #ifndef COIN_SOVOLUMEDETAIL_H 00002 #define COIN_SOVOLUMEDETAIL_H 00003 00004 /**************************************************************************\ 00005 * 00006 * This file is part of the SIM Voleon visualization library. 00007 * Copyright (C) 2003-2004 by Systems in Motion. All rights reserved. 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU General Public License 00011 * ("GPL") version 2 as published by the Free Software Foundation. 00012 * See the file LICENSE.GPL at the root directory of this source 00013 * distribution for additional information about the GNU GPL. 00014 * 00015 * For using SIM Voleon with software that can not be combined with 00016 * the GNU GPL, and for taking advantage of the additional benefits 00017 * of our support services, please contact Systems in Motion about 00018 * acquiring a SIM Voleon Professional Edition License. 00019 * 00020 * See <URL:http://www.coin3d.org/> for more information. 00021 * 00022 * Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY. 00023 * <URL:http://www.sim.no/>. 00024 * 00025 \**************************************************************************/ 00026 00027 00028 #include <Inventor/misc/SoState.h> 00029 #include <Inventor/nodes/SoNode.h> 00030 #include <Inventor/details/SoDetail.h> 00031 #include <Inventor/details/SoSubDetail.h> 00032 #include <Inventor/SbLinear.h> 00033 00034 #include <VolumeViz/C/basic.h> 00035 00036 class SIMVOLEON_DLL_API SoVolumeDetail : public SoDetail { 00037 typedef SoDetail inherited; 00038 00039 SO_DETAIL_HEADER(SoVolumeDetail); 00040 00041 public: 00042 static void initClass(void); 00043 SoVolumeDetail(void); 00044 virtual ~SoVolumeDetail(); 00045 00046 virtual SoDetail * copy(void) const; 00047 00048 void getProfileObjectPos(SbVec3f profile[2]) const; 00049 int getProfileDataPos(SbVec3s profile[2] = 0) const; 00050 unsigned int getProfileValue(int index, 00051 SbVec3s * pos = 0, SbVec3f * objpos = 0, 00052 SbBool flag = FALSE) const; 00053 00054 SbBool getFirstNonTransparentValue(unsigned int * value, 00055 SbVec3s * pos = 0, SbVec3f * objpos = 0, 00056 SbBool flag = FALSE) const; 00057 00058 00059 // NOTE: The TGS VolumeViz signature of this function differs from 00060 // the following. We consider their solution to be unoptimal, and 00061 // have therefore changed the input arguments. This function is 00062 // anyway unlikely to be of any interest to the application 00063 // programmer. 00064 void setDetails(const SbVec3f raystart, const SbVec3f rayend, 00065 SoState * state, SoNode * caller); 00066 00067 private: 00068 class SoVolumeDetailP * pimpl; 00069 friend class SoVolumeDetailP; 00070 }; 00071 00072 #endif // !COIN_SOVOLUMEDETAIL_H
Copyright © 1998-2004 by Systems in Motion AS. All rights reserved.
Generated on Mon Jul 27 22:01:15 2009 for SIMVoleon by Doxygen. 1.5.7.1