Panda3D
Functions | Variables
geomNode.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "geomNode.h"
#include "geom.h"
#include "geomTransformer.h"
#include "sceneGraphReducer.h"
#include "stateMunger.h"
#include "accumulatedAttribs.h"
#include "colorAttrib.h"
#include "colorScaleAttrib.h"
#include "cullFaceAttrib.h"
#include "texMatrixAttrib.h"
#include "textureAttrib.h"
#include "shaderAttrib.h"
#include "bamReader.h"
#include "bamWriter.h"
#include "cullableObject.h"
#include "cullHandler.h"
#include "cullTraverser.h"
#include "cullTraverserData.h"
#include "datagram.h"
#include "datagramIterator.h"
#include "indent.h"
#include "pset.h"
#include "config_pgraph.h"
#include "graphicsStateGuardianBase.h"
#include "boundingBox.h"
#include "boundingSphere.h"
#include "config_mathutil.h"
#include "preparedGraphicsObjects.h"

Go to the source code of this file.

Functions

 CPT (TransformState) GeomNode
 This is used to support NodePath::calc_tight_bounds(). More...
 

Variables

bool allow_flatten_color
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
drose
Date
2002-02-23

Definition in file geomNode.cxx.

Function Documentation

◆ CPT()

CPT ( TransformState  )

This is used to support NodePath::calc_tight_bounds().

It is not intended to be called directly, and it has nothing to do with the normal Panda bounding-volume computation.

If the node contains any geometry, this updates min_point and max_point to enclose its bounding box. found_any is to be set true if the node has any geometry at all, or left alone if it has none. This method may be called over several nodes, so it may enter with min_point, max_point, and found_any already set. Returns true if there is some value to visiting this particular node during the cull traversal for any camera, false otherwise. This will be used to optimize the result of get_net_draw_show_mask(), so that any subtrees that contain only nodes for which is_renderable() is false need not be visited. Adds the node's contents to the CullResult we are building up during the cull traversal, so that it will be drawn at render time. For most nodes other than GeomNodes, this is a do-nothing operation.

Definition at line 461 of file geomNode.cxx.

Variable Documentation

◆ allow_flatten_color

bool allow_flatten_color
Initial value:
("allow-flatten-color", false,
PRC_DESC("allows color to always be flattened to vertices"))
This is a convenience class to specialize ConfigVariable as a boolean type.

Definition at line 44 of file geomNode.cxx.