.TH "SoCylinderDetail" 3 "Thu May 29 2014" "Version 4.0.0a" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoCylinderDetail \- .PP The \fBSoCylinderDetail\fP class contains information about the parts of a \fBSoCylinder\fP shape\&. .PP Instances of this class are used for storing information about hit points on cylinder geometry 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 "\fBSoCylinderDetail\fP (void)" .br .ti -1c .RI "virtual \fB~SoCylinderDetail\fP ()" .br .ti -1c .RI "virtual \fBSoDetail\fP * \fBcopy\fP (void) const " .br .ti -1c .RI "void \fBsetPart\fP (const int \fBpart\fP)" .br .ti -1c .RI "int \fBgetPart\fP (void) const " .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 "Protected Attributes" .in +1c .ti -1c .RI "int \fBpart\fP" .br .in -1c .SS "Additional Inherited Members" .SH "Detailed Description" .PP The \fBSoCylinderDetail\fP class contains information about the parts of a \fBSoCylinder\fP shape\&. .PP Instances of this class are used for storing information about hit points on cylinder geometry after pick operations, and for storing information returned to tessellation callbacks\&. .PP \fBSee also:\fP .RS 4 \fBSoCylinder\fP, \fBSoRayPickAction\fP, \fBSoCallbackAction\fP .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "SoCylinderDetail::SoCylinderDetail (void)" Constructor\&. .SS "SoCylinderDetail::~SoCylinderDetail ()\fC [virtual]\fP" Destructor\&. .SH "Member Function Documentation" .PP .SS "\fBSoType\fP SoCylinderDetail::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 "\fBSoDetail\fP * SoCylinderDetail::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 "void SoCylinderDetail::setPart (const intpartarg)" Set the part of a cylinder which was selected\&. A cylinder has three different conceptual parts; SoCylinder::SIDES, SoCylinder::TOP or SoCylinder::BOTTOM\&. .SS "int SoCylinderDetail::getPart (void) const" Returns selected cylinder part\&. .SH "Member Data Documentation" .PP .SS "int SoCylinderDetail::part\fC [protected]\fP" \fIThis API member is considered internal to the library, as it is not likely to be of interest to the application programmer\&.\fP .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.