/usr/include/Inventor/actions/SoCallbackAction.h is in libcoin80-dev 3.1.4~abc9f50-4ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | #ifndef COIN_SOCALLBACKACTION_H
#define COIN_SOCALLBACKACTION_H
/**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* Neither the name of the copyright holder nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\**************************************************************************/
// FIXME: Support getTextureFilename[s]() ? (kintel 20011205)
#include <Inventor/actions/SoAction.h>
#include <Inventor/actions/SoSubAction.h>
#include <Inventor/elements/SoDecimationTypeElement.h>
#include <Inventor/lists/SbList.h>
#include <Inventor/nodes/SoComplexity.h>
#include <Inventor/nodes/SoDrawStyle.h>
#include <Inventor/nodes/SoLightModel.h>
#include <Inventor/nodes/SoMaterialBinding.h>
#include <Inventor/nodes/SoNormalBinding.h>
#include <Inventor/nodes/SoPickStyle.h>
#include <Inventor/nodes/SoShapeHints.h>
#include <Inventor/nodes/SoTexture2.h>
#include <Inventor/nodes/SoTextureCoordinateBinding.h>
#include <Inventor/nodes/SoUnits.h>
class SbColor;
class SbMatrix;
class SbVec2f;
class SbVec2s;
class SbVec3f;
class SbVec4f;
class SbViewVolume;
class SoCallbackAction;
class SoCallbackActionP;
class SoCallbackData;
class SoPrimitiveVertex;
class SoShape;
class SbViewportRegion;
typedef void SoTriangleCB(void * userdata, SoCallbackAction * action,
const SoPrimitiveVertex * v1,
const SoPrimitiveVertex * v2,
const SoPrimitiveVertex * v3);
typedef void SoLineSegmentCB(void * userdata, SoCallbackAction * action,
const SoPrimitiveVertex * v1,
const SoPrimitiveVertex * v2);
typedef void SoPointCB(void * userdata, SoCallbackAction * action,
const SoPrimitiveVertex * v);
class COIN_DLL_API SoCallbackAction : public SoAction {
typedef SoAction inherited;
SO_ACTION_HEADER(SoCallbackAction);
public:
static void initClass(void);
SoCallbackAction(void);
SoCallbackAction(const SbViewportRegion & vp);
virtual ~SoCallbackAction(void);
void setViewportRegion(const SbViewportRegion & vp);
enum Response { CONTINUE, ABORT, PRUNE };
typedef Response SoCallbackActionCB(void * userdata,
SoCallbackAction * action,
const SoNode * node);
void addPreCallback(const SoType type, SoCallbackActionCB * cb, void * userdata);
void addPostCallback(const SoType type, SoCallbackActionCB * cb, void * userdata);
void addPreTailCallback(SoCallbackActionCB * cb, void * userdata);
void addPostTailCallback(SoCallbackActionCB * cb, void * userdata);
void addTriangleCallback(const SoType type, SoTriangleCB * cb, void * userdata);
void addLineSegmentCallback(const SoType type, SoLineSegmentCB * cb, void * userdata);
void addPointCallback(const SoType type, SoPointCB * cb, void * userdata);
SoDecimationTypeElement::Type getDecimationType(void) const;
float getDecimationPercentage(void) const;
float getComplexity(void) const;
SoComplexity::Type getComplexityType(void) const;
int32_t getNumCoordinates(void) const;
const SbVec3f & getCoordinate3(const int index) const;
const SbVec4f & getCoordinate4(const int index) const;
SoDrawStyle::Style getDrawStyle(void) const;
unsigned short getLinePattern(void) const;
float getLineWidth(void) const;
float getPointSize(void) const;
const SbName & getFontName(void) const;
float getFontSize(void) const;
SoLightModel::Model getLightModel(void) const;
const SbVec3f & getLightAttenuation(void) const;
void getMaterial(SbColor & ambient, SbColor & diffuse,
SbColor & specular, SbColor & emission,
float & shininess, float & transparency,
const int index = 0) const;
SoMaterialBinding::Binding getMaterialBinding(void) const;
uint32_t getNumNormals(void) const;
const SbVec3f & getNormal(const int index) const;
SoNormalBinding::Binding getNormalBinding(void) const;
int32_t getNumProfileCoordinates(void) const;
const SbVec2f & getProfileCoordinate2(const int index) const;
const SbVec3f & getProfileCoordinate3(const int index) const;
const SoNodeList & getProfile(void) const;
SoShapeHints::VertexOrdering getVertexOrdering(void) const;
SoShapeHints::ShapeType getShapeType(void) const;
SoShapeHints::FaceType getFaceType(void) const;
float getCreaseAngle(void) const;
int32_t getNumTextureCoordinates(void) const;
const SbVec2f & getTextureCoordinate2(const int index) const;
const SbVec3f & getTextureCoordinate3(const int index) const;
const SbVec4f & getTextureCoordinate4(const int index) const;
SoTextureCoordinateBinding::Binding getTextureCoordinateBinding(void) const;
const SbColor & getTextureBlendColor(void) const;
const unsigned char * getTextureImage(SbVec2s & size, int & numcomps) const;
const unsigned char * getTextureImage(SbVec3s & size, int & numcomps) const;
const SbMatrix & getTextureMatrix(void) const;
SoTexture2::Model getTextureModel(void) const;
SoTexture2::Wrap getTextureWrapS(void) const;
SoTexture2::Wrap getTextureWrapT(void) const;
SoTexture2::Wrap getTextureWrapR(void) const;
const SbMatrix & getModelMatrix(void) const;
SoUnits::Units getUnits(void) const;
float getFocalDistance(void) const;
const SbMatrix & getProjectionMatrix(void) const;
const SbMatrix & getViewingMatrix(void) const;
const SbViewVolume & getViewVolume(void) const;
const SbViewportRegion & getViewportRegion(void) const;
SoPickStyle::Style getPickStyle(void) const;
int32_t getSwitch(void) const;
Response getCurrentResponse(void) const;
void invokePreCallbacks(const SoNode * const node);
void invokePostCallbacks(const SoNode * const node);
void invokeTriangleCallbacks(const SoShape * const shape,
const SoPrimitiveVertex * const v1,
const SoPrimitiveVertex * const v2,
const SoPrimitiveVertex * const v3);
void invokeLineSegmentCallbacks(const SoShape * const shape,
const SoPrimitiveVertex * const v1,
const SoPrimitiveVertex * const v2);
void invokePointCallbacks(const SoShape * const shape,
const SoPrimitiveVertex * const v);
SbBool shouldGeneratePrimitives(const SoShape * shape) const;
virtual SoNode * getCurPathTail(void);
void setCurrentNode(SoNode * const node);
void setCallbackAll(SbBool callbackall);
SbBool isCallbackAll(void) const;
protected:
virtual void beginTraversal(SoNode * node);
private:
void commonConstructor(void);
private:
SbPimplPtr<SoCallbackActionP> pimpl;
friend class SoCallbackActionP;
SoCallbackAction(const SoCallbackAction & rhs);
SoCallbackAction & operator = (const SoCallbackAction & rhs);
}; // SoCallbackAction
#endif // !COIN_SOCALLBACKACTION_H
|