MCPcopy Create free account
hub / github.com/Kitware/VTK / SetPropArrayAndCount

Method SetPropArrayAndCount

Rendering/Core/vtkRenderState.cxx:103–113  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Set the array of filtered props and its size. \pre positive_size: propArrayCount>=0 \pre valid_null_array: propArray!=0 || propArrayCount==0 \post is_set: GetPropArray()==propArray && GetPropArrayCount()==propArrayCount

Source from the content-addressed store, hash-verified

101// \pre valid_null_array: propArray!=0 || propArrayCount==0
102// \post is_set: GetPropArray()==propArray && GetPropArrayCount()==propArrayCount
103void vtkRenderState::SetPropArrayAndCount(vtkProp** propArray, int propArrayCount)
104{
105 assert("pre: positive_size" && propArrayCount >= 0);
106 assert("pre: valid_null_array" && (propArray != nullptr || propArrayCount == 0));
107
108 this->PropArray = propArray;
109 this->PropArrayCount = propArrayCount;
110
111 assert("post: is_set" && this->GetPropArray() == propArray &&
112 this->GetPropArrayCount() == propArrayCount);
113}
114
115//------------------------------------------------------------------------------
116// Description:

Callers 11

RenderDelegateMethod · 0.80
RenderOnFaceMethod · 0.80
RenderDelegateMethod · 0.80
RenderMethod · 0.80
DeviceRenderMethod · 0.80
UpdateGeometryMethod · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
RecordRenderCommandsMethod · 0.80

Calls 3

GetPropArrayMethod · 0.95
GetPropArrayCountMethod · 0.95
assertFunction · 0.50

Tested by

no test coverage detected