SoShapeSimplifyAction(3)
π SoShapeSimplifyAction(3) π
okay bestie, this page lives in the Library Functions Manual, and it's all about SoShapeSimplifyAction, so let's get into it π
πΈ NAME πΈ
SoShapeSimplifyAction β the class that takes your complex primitives and replaces them with simplified polygon representations. that's literally the whole personality. π¦
β¨ SYNOPSIS β¨
Inherits SoSimplifyAction.
π«Ά Public Member Functions π«Ά
virtual SoType getTypeId (void) constSoShapeSimplifyAction (void)virtual ~SoShapeSimplifyAction (void)
π Public Member Functions inherited from SoSimplifyAction π
SoSimplifyAction (void)virtual ~SoSimplifyAction (void)virtual void apply (SoNode *root)virtual void apply (SoPath *path)virtual void apply (const SoPathList &pathlist, SbBool obeysrules=FALSE)
π Public Member Functions inherited from SoAction π
virtual ~SoAction (void)virtual SbBool isOfType (SoType type) constvoid apply (SoAction *beingApplied)virtual void invalidateState (void)AppliedCode getWhatAppliedTo (void) constSoNode * getNodeAppliedTo (void) constSoPath * getPathAppliedTo (void) constconst SoPathList * getPathListAppliedTo (void) constconst SoPathList * getOriginalPathListAppliedTo (void) constSbBool isLastPathListAppliedTo (void) constPathCode getPathCode (int &numindices, const int *&indices)void traverse (SoNode *const node)SbBool hasTerminated (void) constconst SoPath * getCurPath (void)SoState * getState (void) constPathCode getCurPathCode (void) constvirtual SoNode * getCurPathTail (void)void usePathCode (int &numindices, const int *&indices)void pushCurPath (const int childindex, SoNode *node=NULL)void popCurPath (const PathCode prevpathcode)void pushCurPath (void)void popPushCurPath (const int childindex, SoNode *node=NULL)void popCurPath (void)void switchToPathTraversal (SoPath *path)void switchToNodeTraversal (SoNode *node)
β Static Public Member Functions β
static SoType getClassTypeId (void)static void addMethod (const SoType type, SoActionMethod method)static void enableElement (const SoType type, const int stackindex)static void initClass (void)
π Static Public Member Functions inherited from SoSimplifyAction π
static SoType getClassTypeId (void)static void addMethod (const SoType type, SoActionMethod method)static void enableElement (const SoType type, const int stackindex)static void initClass (void)
β¨ Static Public Member Functions inherited from SoAction β¨
static void initClass (void)static void initClasses (void)static SoType getClassTypeId (void)static void nullAction (SoAction *action, SoNode *node)
π Protected Member Functions π
virtual const SoEnabledElementsList & getEnabledElements (void) constvirtual void beginTraversal (SoNode *node)
π Protected Member Functions inherited from SoAction π
SoAction (void)virtual void endTraversal (SoNode *node)void setTerminated (const SbBool flag)virtual SbBool shouldCompactPathList (void) const
π§ Static Protected Member Functions π§
static SoEnabledElementsList * getClassEnabledElements (void)static SoActionMethodList * getClassActionMethods (void)
πΈ Static Protected Member Functions inherited from SoSimplifyAction πΈ
static SoEnabledElementsList * getClassEnabledElements (void)static SoActionMethodList * getClassActionMethods (void)
π¦ Static Protected Member Functions inherited from SoAction π¦
static SoEnabledElementsList * getClassEnabledElements (void)static SoActionMethodList * getClassActionMethods (void)
π Additional Inherited Members π
π« Public Types inherited from SoAction π«
enum AppliedCode { NODE = 0, PATH = 1, PATH_LIST = 2 }enum PathCode { NO_PATH = 0, IN_PATH = 1, BELOW_PATH = 2, OFF_PATH = 3 }
π«§ Protected Attributes inherited from SoAction π«§
SoState * stateSoActionMethodList * traversalMethods
π Detailed Description π
okay so the tea is: SoShapeSimplifyAction replaces complex primitives with simplified polygon representations. that's it, that's the whole vibe. iconic honestly. π
π Constructor & Destructor Documentation π
π SoShapeSimplifyAction::SoShapeSimplifyAction (void ) π
a constructor. yes bestie, it makes one. β¨
π SoShapeSimplifyAction::~SoShapeSimplifyAction (void ) [virtual] π
the destructor. it cleans up after the party. π§Ή
π Member Function Documentation π
π SoType SoShapeSimplifyAction::getTypeId (void ) const [virtual] π
Returns the type identification of an action derived from a class inheriting SoAction. This is used for run-time type checking and "downward" casting.
Usage example, no cap:
void bar(SoAction * action)
{
if (action->getTypeId() == SoGLRenderAction::getClassTypeId()) {
// safe downward cast, know the type
SoGLRenderAction * glrender = (SoGLRenderAction *)action;
}
return; // ignore if not renderaction
}
For application programmers wanting to extend the library with new actions: this method needs to be overridden in all 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/SoSubAction.h: SO_ACTION_SOURCE, SO_ACTION_INIT_CLASS and SO_ACTION_CONSTRUCTOR.
For more information on writing Coin extensions, see the SoAction class documentation.
Returns the actual type id of an object derived from a class inheriting SoAction. Needs to be overridden in all subclasses. periodt.
Reimplemented from SoSimplifyAction.
π void SoShapeSimplifyAction::addMethod (const SoType type, SoActionMethod method) [static] π
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. so like, not your business bestie, but here it is anyway π«Ά
π void SoShapeSimplifyAction::enableElement (const SoType type, const int stackindex) [static] π
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. same energy, same disclaimer π
π const SoEnabledElementsList & SoShapeSimplifyAction::getEnabledElements (void ) const [protected], [virtual] π
Returns a list of the elements used by action instances of this class upon traversal operations. it's giving receipts, but for elements. π§Ύ
Reimplemented from SoSimplifyAction.
π void SoShapeSimplifyAction::beginTraversal (SoNode * node) [protected], [virtual] π
This virtual method is called from SoAction::apply(), and is the entry point for the actual scenegraph traversal. main character energy fr fr. π
It can be overridden to initialize the action at traversal start, for specific initializations in the action subclasses inheriting SoAction.
Default method just calls traverse(), which any overridden implementation of the method must do too (or call SoAction::beginTraversal()) to trigger the scenegraph traversal.
Reimplemented from SoSimplifyAction.
βοΈ Author βοΈ
Generated automatically by Doxygen for Coin, straight from the source code. no human wrote this, it just vibed into existence. π€β¨
and that's the whole page bestie!! this one's from Coin, Version 3.1.3, so go forth and simplify those complex primitives, you absolute icon πππ¦ slay, mwah π
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms