Display a triangular surface as transparent object using depth-sorting.
Display a triangular surface as transparent object using depth-sorting.Render a triangular surface transparently.
#include <ocean/GLvish/VGLRenderObject.hpp>
#include <ocean/GLvish/BoundingBox.hpp>
#include <ocean/GLvish/ArrayTypes.hpp>
#include <ocean/GLvish/colors.hpp>
#include <ocean/shrimp/VObjectStatus.hpp>
#include <eagle/PhysicalSpace.hpp>
#include <field/Cell.hpp>
#include <GL/fiberGL.hpp>
#include <baseop/ExpandBBox.hpp>
#include <eye/retina/VSkeletonRenderObject.hpp>
#include <grid/types/TriangularSurface.hpp>
#include <bundle/BundleProperty.hpp>
#include <bone/GridActor.hpp>
#include <GL/PartialElementRenderer.hpp>
namespace
{
{
public:
{
using TriangularSurface::operator=;
};
{
return new MyState();
}
SurfaceBackColor;
, SurfaceColor(this, "color", Color(1.,.1,1., 1.0),0)
, SurfaceBackColor(this, "backcolor", Color(.0, 1.,1.0, 1.0),0)
, Transparency(this, "opacity", 0.5, 0)
{}
bool update(
VRequest&R,
double precision)
override;
static string createChildname(
const string&
parent_name)
{
}
};
{
if (!G)
{
return setStatusError(
Context,
"No Grid found.");
}
*S = G;
if (!*S)
return setStatusError(
Context,
"No surface available.");
setBoundingBall(
Context, getBoundingBox( S->CoordField ) );
return setStatusInfo(
Context,
"Surface ready to render.");
}
{
{
assert( Cells->getTypedStorage() );
}
{
}
{
}
};
{
if (!myState)
return false;
return false;
{
printf("Did not find coordinates :( \n");
return false;
}
{
printf("Did not find triangles :( \n");
return false;
}
double Alpha = 0.5;
BaryCenters =
Tmp->getCreator();
try
{
{
{
{
return true;
}
}
}
}
{}
{
}
return true;
}
{
{
}
};
}
namespace
{
Url(
"http://vish.fiberbundle.net/wiki" ),
ObjectQuality::OUTDATED );
}
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
A concrete Grid Property which looks for the existence of a Skeleton of the specified dimension and i...
Definition BundleProperty.hpp:76
Base class for objects that render information given on the triangle of a Grid.
Definition TriangleRenderer.hpp:22
Base class for objects rendering skeletons of a fiber bundle.
Definition VSkeletonRenderObject.hpp:21
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
note: cannot derive from FloatingSkeletonRenderer as long as independent base class TriangleRenderer ...
Definition GridInspector.hpp:13
A triangular surface stored on a Grid.
Definition TriangularSurface.hpp:43
Base class to draw a selection of elements as OpenGL points.
Definition PartialElementRenderer.hpp:85