#include <SoTransparency.h>
|
virtual void | GLRender (SoGLRenderAction *action) |
|
virtual void | callback (SoCallbackAction *action) |
|
virtual void | doAction (SoAction *action) |
|
Definition at line 20 of file SoTransparency.h.
◆ SoTransparency()
SoTransparency::SoTransparency |
( |
| ) |
|
◆ ~SoTransparency()
SoTransparency::~SoTransparency |
( |
| ) |
|
|
privatevirtual |
◆ callback()
void SoTransparency::callback |
( |
SoCallbackAction * |
action | ) |
|
|
protectedvirtual |
◆ doAction()
void SoTransparency::doAction |
( |
SoAction * |
action | ) |
|
|
protectedvirtual |
Definition at line 70 of file SoTransparency.cxx.
77 const float isRelative =
relative.getValue();
79 if ( isRelative && transpVal<=0.0
f )
82 const SoTransparencyElement * STE = SoTransparencyElement::getInstance(
action->getState() );
83 const int n = STE->getNum();
87 float * finalTransparency =
new float[
n];
88 for (
int i = 0;
i <
n;
i++)
89 finalTransparency[
i] = std::min<float>( 1.0
f, std::max<float>( 0.0
f, ( isRelative ? ( 1.0 - (1.0 - transpVal) * (1.0 - STE->get(0)) ) : transpVal ) ) );
◆ GLRender()
void SoTransparency::GLRender |
( |
SoGLRenderAction * |
action | ) |
|
|
protectedvirtual |
◆ initClass()
void SoTransparency::initClass |
( |
| ) |
|
|
static |
Definition at line 29 of file SoTransparency.cxx.
31 [[maybe_unused]]
static const bool didInit = [&]() {
◆ SO_NODE_HEADER()
◆ relative
SoSFBool SoTransparency::relative |
◆ transparency
SoSFFloat SoTransparency::transparency |
The documentation for this class was generated from the following files:
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.