.TH "SoPointDetail" 3 "Sat Oct 12 2013" "Version 4.0.0a" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoPointDetail \- .PP The \fBSoPointDetail\fP class is for storing detailed information for a single 3D point\&. .PP Instances of this class are used among other things for storing information about the vertices of lines and polygons after pick operations, and for storing information returned to tessellation callbacks\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBSoDetail\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "virtual \fBSoType\fP \fBgetTypeId\fP (void) const " .br .ti -1c .RI "\fBSoPointDetail\fP (void)" .br .ti -1c .RI "virtual \fB~SoPointDetail\fP ()" .br .ti -1c .RI "virtual \fBSoDetail\fP * \fBcopy\fP (void) const " .br .ti -1c .RI "int \fBgetCoordinateIndex\fP (void) const " .br .ti -1c .RI "int \fBgetMaterialIndex\fP (void) const " .br .ti -1c .RI "int \fBgetNormalIndex\fP (void) const " .br .ti -1c .RI "int \fBgetTextureCoordIndex\fP (void) const " .br .ti -1c .RI "void \fBsetCoordinateIndex\fP (const int idx)" .br .ti -1c .RI "void \fBsetMaterialIndex\fP (const int idx)" .br .ti -1c .RI "void \fBsetNormalIndex\fP (const int idx)" .br .ti -1c .RI "void \fBsetTextureCoordIndex\fP (const int idx)" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static void \fBcleanupClass\fP (void)" .br .ti -1c .RI "static void \fBinitClass\fP (void)" .br .in -1c .SS "Additional Inherited Members" .SH "Detailed Description" .PP The \fBSoPointDetail\fP class is for storing detailed information for a single 3D point\&. .PP Instances of this class are used among other things for storing information about the vertices of lines and polygons after pick operations, and for storing information returned to tessellation callbacks\&. It contains indices into the vertex coordinate sets, along with indices into material, texture and normal coordinates for the point\&. .SH "Constructor & Destructor Documentation" .PP .SS "SoPointDetail::SoPointDetail (void)" Sets up an empty detail instance (all indices are equal to 0)\&. .SS "SoPointDetail::~SoPointDetail ()\fC [virtual]\fP" Destructor\&. .SH "Member Function Documentation" .PP .SS "\fBSoType\fP SoPointDetail::getTypeId (void) const\fC [virtual]\fP" Returns the type identification of a detail derived from a class inheriting \fBSoDetail\fP\&. This is used for run-time type checking and 'downward' casting\&. .PP Usage example: .PP .PP .nf void fuhbear(SoDetail * detail) { if (detail->getTypeId() == SoFaceDetail::getClassTypeId()) { // safe downward cast, know the type SoFaceDetail * facedetail = (SoFaceDetail *)detail; } return; // ignore if not a SoFaceDetail } .fi .PP .PP For application programmers wanting to extend the library with new detail classes: this method needs to be overridden in \fIall\fP subclasses\&. This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through Inventor/nodes/SoSubDetail\&.h: SO_DETAIL_SOURCE and SO_DETAIL_INIT_CLASS\&. .PP Implements \fBSoDetail\fP\&. .SS "\fBSoType\fP SoPointDetail::getClassTypeId (void)\fC [static]\fP" Returns the type for this class\&. .PP Reimplemented from \fBSoDetail\fP\&. .SS "void SoPointDetail::initClass (void)\fC [static]\fP" Initialize relevant common data for all instances, like the type system\&. .PP Reimplemented from \fBSoDetail\fP\&. .SS "\fBSoDetail\fP * SoPointDetail::copy (void) const\fC [virtual]\fP" Return a deep copy of ourself\&. .PP \fBNote that if the Coin library has been built as a DLL under Microsoft Windows and you use this method from application code, you \fImust\fP make sure that both the Coin DLL and the application executable is using the same instance of a C Run-Time (CRT) library\&. Otherwise, you \fIwill\fP get memory heap corruption upon deallocating the returned instances, eventually leading to mysterious crashes\&.\fP .PP Implements \fBSoDetail\fP\&. .SS "int SoPointDetail::getCoordinateIndex (void) const" Returns index into coordinate set for the point's 3D coordinates\&. .SS "int SoPointDetail::getMaterialIndex (void) const" Returns point's index into set of materials\&. .SS "int SoPointDetail::getNormalIndex (void) const" Returns point's index into set of normals\&. .SS "int SoPointDetail::getTextureCoordIndex (void) const" Returns point's index into set of texture coordinates\&. .SS "void SoPointDetail::setCoordinateIndex (const intidx)" Used by client code for initializing the point detail instance\&. .SS "void SoPointDetail::setMaterialIndex (const intidx)" Used by client code for initializing the point detail instance\&. .SS "void SoPointDetail::setNormalIndex (const intidx)" Used by client code for initializing the point detail instance\&. .SS "void SoPointDetail::setTextureCoordIndex (const intidx)" Used by client code for initializing the point detail instance\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.