SoOrthoSlice(3)
π SoOrthoSlice β NAME β¨
okay bestie, meet SoOrthoSlice (that's the SoOrthoSlice(3) manual page, we're in section 3, library functions, iykyk) β it renders one orthogonal slice of the volume data. one slice. iconic behavior. π
π¦ SYNOPSIS πΈ
#include <VolumeViz/nodes/SoOrthoSlice.h>
β¨ Public Types β¨
enum Axis { X = 0, Y, Z }enum Interpolation { NEAREST, LINEAR }enum AlphaUse { ALPHA_AS_IS, ALPHA_OPAQUE, ALPHA_BINARY }enum ClippingSide { FRONT, BACK }
π«Ά Public Member Functions π«Ά
virtual SbBool affectsState (void) const
β Static Public Member Functions β
static void initClass (void)
π Public Attributes π
SoSFUInt32 sliceNumberSoSFEnum axisSoSFEnum interpolationSoSFEnum alphaUseSoSFEnum clippingSideSoSFBool clippingSoSFNode alternateRep
π Protected Member Functions π
virtual void doAction (SoAction *action)virtual void GLRender (SoGLRenderAction *action)virtual void rayPick (SoRayPickAction *action)virtual void generatePrimitives (SoAction *action)virtual void computeBBox (SoAction *action, SbBox3f &box, SbVec3f ¢er)virtual void write (SoWriteAction *action)virtual SbBool readInstance (SoInput *in, unsigned short flags)
π Friends π
class SoOrthoSliceP
π Detailed Description π
Render one orthogonal slice of the volume data.
so like. drop a node of this type into your scene graph after an SoVolumeData node, and boom β you get a single, axis-aligned slice carved out of the whole volume data set. it's giving "one perfect cross-section" energy. π₯
here's a lil simple example, as an iv-file:
#Inventor V2.1 ascii
SoVolumeData { fileName "ENGINE.VOL" }
SoTransferFunction { predefColorMap TEMPERATURE }
SoOrthoSlice { sliceNumber 0 }
Translation { translation 5 0 0 }
SoOrthoSlice { sliceNumber 10 }
and when you load that into an examinerviewer, you get something like this:
(yes bestie, there's a picture in the original right here β a whole visual moment πΈ)
πΈ See also πΈ
SoVolumeRender
π Member Data Documentation π
π« SoSFUInt32 SoOrthoSlice::sliceNumber
decides where the slice will be made through the volume. like, which layer we're peeking at. π
default value is 0.
π« SoSFEnum SoOrthoSlice::axis
decides which plane the orthonormal slice will show. the plane will be the one perpendicular to the axis β so if this field is set to SoOrthoSlice::Z, the slice will lay in the X-Y plane. math girlies rise. π
default value is SoOrthoSlice::Z.
π« SoSFEnum SoOrthoSlice::alphaUse
decides how to handle the alpha values of the slice. the options, bestie:
- set it to
SoOrthoSlice::ALPHA_AS_ISand the slice gets rendered as a regular texture. - set it to
SoOrthoSlice::ALPHA_BINARYand all texels withalpha != 0become opaque. - set it to
SoOrthoSlice::ALPHA_OPAQUEand all texels become opaque, no matter what the original alpha value was. full coverage, no transparency, periodt.
default value is SoOrthoSlice::ALPHA_BINARY.
π« SoSFNode SoOrthoSlice::alternateRep
β οΈ NOTE: support for this field not yet implemented in SIM Voleon. don't come for me, it's literally in the source. π
Since
SIM Voleon 2.0
π Author π
generated automatically by Doxygen for SIMVoleon from the source code. the robots did this one, not me. π€β¨
and that's the whole page, bestie β signed off with SIMVoleon, Version 2.1.0, dated SoOrthoSlice(3). slay, go render a slice. π
π¦π
π¦ where this page comes from
- fedora 43: SIMVoleon-devel 2.1.0-9.fc43 Β· BSD-3-Clause
- fedora 43: SIMVoleon-devel 2.1.0-9.fc43 Β· BSD-3-Clause
- fedora 44: SIMVoleon-devel 2.1.0-11.fc44 Β· BSD-3-Clause
- fedora 44: SIMVoleon-devel 2.1.0-11.fc44 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms