24 #ifndef vtkOpenGLPolyDataMapper_h 25 #define vtkOpenGLPolyDataMapper_h 28 #include "vtkRenderingOpenGL2Module.h" 53 void PrintSelf(ostream& os,
vtkIndent indent);
74 void ReleaseGraphicsResources(
vtkWindow *);
76 vtkGetMacro(PopulateSelectionSettings,
int);
77 void SetPopulateSelectionSettings(
int v) { this->PopulateSelectionSettings = v; };
111 vtkSetStringMacro(PointIdArrayName);
113 vtkSetStringMacro(CellIdArrayName);
123 vtkSetStringMacro(ProcessIdArrayName);
137 vtkSetStringMacro(CompositeIdArrayName);
150 void AddShaderReplacement(
156 void ClearShaderReplacement(
169 vtkSetStringMacro(VertexShaderCode);
171 vtkSetStringMacro(FragmentShaderCode);
173 vtkSetStringMacro(GeometryShaderCode);
183 std::vector<float> &buffData);
196 this->HaveAppleBugForce = 1;
201 this->HaveAppleBugForce = 2;
217 void SetVBOShiftScaleMethod(
int m);
249 void GetCoincidentParameters(
263 virtual void UpdateShaders(
269 virtual bool GetNeedToRebuildShaders(
275 virtual void BuildShaders(
276 std::map<vtkShader::Type, vtkShader *> shaders,
282 virtual void GetShaderTemplate(
283 std::map<vtkShader::Type, vtkShader *> shaders,
289 virtual void ReplaceShaderValues(
290 std::map<vtkShader::Type, vtkShader *> shaders,
298 virtual void ReplaceShaderRenderPass(
299 std::map<vtkShader::Type, vtkShader *> shaders,
301 virtual void ReplaceShaderColor(
302 std::map<vtkShader::Type, vtkShader *> shaders,
304 virtual void ReplaceShaderLight(
305 std::map<vtkShader::Type, vtkShader *> shaders,
307 virtual void ReplaceShaderTCoord(
308 std::map<vtkShader::Type, vtkShader *> shaders,
310 virtual void ReplaceShaderPicking(
311 std::map<vtkShader::Type, vtkShader *> shaders,
313 virtual void ReplaceShaderPrimID(
314 std::map<vtkShader::Type, vtkShader *> shaders,
316 virtual void ReplaceShaderNormal(
317 std::map<vtkShader::Type, vtkShader *> shaders,
319 virtual void ReplaceShaderClip(
320 std::map<vtkShader::Type, vtkShader *> shaders,
322 virtual void ReplaceShaderPositionVC(
323 std::map<vtkShader::Type, vtkShader *> shaders,
325 virtual void ReplaceShaderCoincidentOffset(
326 std::map<vtkShader::Type, vtkShader *> shaders,
328 virtual void ReplaceShaderDepth(
329 std::map<vtkShader::Type, vtkShader *> shaders,
385 virtual bool HaveTextures(
vtkActor *actor);
388 virtual unsigned int GetNumberOfTextures(
vtkActor *actor);
395 virtual std::vector<vtkTexture *> GetTextures(
vtkActor *actor);
437 void BuildCellTextures(
443 void AppendCellTextures(
448 std::vector<unsigned char> &colors,
449 std::vector<float> &normals,
499 #if GL_ES_VERSION_3_0 != 1 508 int GetOpenGLMode(
int representation,
int primType);
512 int GetPointPickingPrimitiveSize(
int primType);
void ForceHaveAppleBugOn()
Override the normal test for the apple bug.
a PolyDataMapper for the OpenGL library
vtkMatrix3x3 * TempMatrix3
represents an object (geometry & properties) in a rendered scene
vtkOpenGLBufferObject * CellScalarBuffer
std::string VBOBuildString
represent and manipulate 4x4 transformation matrices
Type
Available shader types.
vtkTimeStamp VBOBuildTime
record modification and/or execution time
vtkPolyData * CurrentInput
vtkTextureObject * CellScalarTexture
vtkOpenGLBufferObject * CellNormalBuffer
vtkTextureObject * CellNormalTexture
abstract specification for renderers
std::string OriginalValue
std::map< const ReplacementSpec, ReplacementValue > UserShaderReplacements
bool ForceTextureCoordinates
virtual bool GetIsOpaque()
Returns if the mapper does not expect to have translucent geometry.
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkOpenGLVertexBufferObject * VBO
vtkTypeUInt64 vtkMTimeType
bool operator<(const ReplacementSpec &v1) const
vtkSmartPointer< vtkValuePassHelper > ValuePassHelper
Implementation of both rendering modes of vtkValuePass for the vtkOpenGLPolyDataMapper.
std::vector< float > AppleBugPrimIDs
window superclass for vtkRenderWindow
int PopulateSelectionSettings
bool operator>(const ReplacementSpec &v1) const
a simple class to control print indentation
std::map< const vtkOpenGLHelper *, vtkTimeStamp > LightComplexityChanged
vtkMatrix4x4 * TempMatrix4
vtkNew< vtkMatrix4x4 > VBOShiftScale
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
virtual void Modified()
Update the modification time for this object.
char * FragmentShaderCode
std::string IBOBuildString
char * GeometryShaderCode
virtual void ComputeBounds()
Called in GetBounds().
virtual bool GetSupportsSelection()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
vtkOpenGLHelper * LastBoundBO
abstract class specifies interface to map data
void ShallowCopy(vtkAbstractMapper *m)
Make a shallow copy of this mapper.
std::map< const vtkOpenGLHelper *, int > LastLightComplexity
abstracts an OpenGL texture object.
vtkTimeStamp SelectionStateChanged
map vtkPolyData to graphics primitives
object to represent cell connectivity
vtkShader::Type ShaderType
vtkGenericOpenGLResourceFreeCallback * ResourceCallback
vtkNew< vtkTransform > VBOInverseTransform
bool GetHaveAppleBug()
Get the value of HaveAppleBug.
char * ProcessIdArrayName
static vtkPolyDataMapper * New()
char * CompositeIdArrayName
represent and manipulate 3x3 transformation matrices
vtkNew< vtkInformation > LastRenderPassInfo
void ForceHaveAppleBugOff()
Override the normal test for the apple bug.
std::string CellTextureBuildString
vtkOpenGLBufferObject * AppleBugPrimIDBuffer