Commit 27fb8a1c authored by Kyle Lutz's avatar Kyle Lutz

Fix misspellings in VTK/Rendering

This fixes a number of misspellings in the comments of
the source files in VTK/Rendering. The misspellings were
found using the codespell tool.

Change-Id: Id7b9f02c583cac599568838c378140e0b6a407a7
parent 1f37bb10
......@@ -233,7 +233,7 @@ int LoadOpenGLExtension(int argc, char *argv[])
{
// Set up a convolution filter. We are using the Laplacian filter, which
// is basically an edge detector. Once vtkgl::CONVOLUTION_2D is enabled,
// the filter will be applied any time an image is transfered in the
// the filter will be applied any time an image is transferred in the
// pipeline.
cout << "Set up convolution filter." << endl;
vtkgl::ConvolutionFilter2D(vtkgl::CONVOLUTION_2D, GL_LUMINANCE, 3, 3,
......
......@@ -1739,7 +1739,7 @@ static const char* vtkTextLabelList[] =
"Assurance",
"Perry",
"Cruise",
"Vermillion",
"Vermilion",
"San Jacinto",
"Diamond Head",
"Lardner",
......
......@@ -1739,7 +1739,7 @@ static const char* vtkTextLabelList[] =
"Assurance",
"Perry",
"Cruise",
"Vermillion",
"Vermilion",
"San Jacinto",
"Diamond Head",
"Lardner",
......
......@@ -147,7 +147,7 @@ int TestPriorityStreaming(int argc, char *argv[])
delete [] priority;
//--------------------------------------------------------------------------
// Now test meta-information persistance.
// Now test meta-information persistence.
// Meta information is either about the geometry (GI), or about
// the attribute ranges (AI).
//
......
......@@ -446,7 +446,7 @@ void vtkCamera::ComputeOffAxisProjectionFrustum()
E[0] += this->EyeSeparation / 2.0;
}
// First tranform the eye to new position.
// First transform the eye to new position.
this->EyeTransformMatrix->MultiplyPoint(E, E);
// Now transform the eye and screen corner points into the screen
......
......@@ -585,7 +585,7 @@ void vtkCarbonRenderWindow::SetSize(int x, int y)
if(this->ParentId && this->RootWindow && !this->WindowId)
{
// backwards compatiblity with Tk and who else?
// backwards compatibility with Tk and who else?
UpdateGLRegion();
}
else if(this->OwnWindow || !this->WindowId)
......@@ -625,7 +625,7 @@ void vtkCarbonRenderWindow::SetPosition(int x, int y)
if(this->ParentId && this->RootWindow && !this->WindowId)
{
// backwards compatiblity with Tk and who else?
// backwards compatibility with Tk and who else?
UpdateGLRegion();
}
else if(this->OwnWindow || !this->WindowId)
......
......@@ -37,7 +37,7 @@ void (*vtkCarbonRenderWindowInteractor::ClassExitMethodArgDelete)(void *)
= (void (*)(void *))NULL;
//--------------------------------------------------------------------------
// Translate a char to the Tk equivalent keysym for compability
// Translate a char to the Tk equivalent keysym for compatibility
static const char *vtkMacCharCodeToKeySymTable[128] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
......@@ -59,7 +59,7 @@ static const char *vtkMacCharCodeToKeySymTable[128] = {
};
//--------------------------------------------------------------------------
// Translate a virtual keycode to the Tk equivalent keysym for compability
// Translate a virtual keycode to the Tk equivalent keysym for compatibility
static const char *vtkMacKeyCodeToKeySymTable[128] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
......
......@@ -270,7 +270,7 @@ int vtkCgShader::Compile()
}
if (this->Internals->LastError != CG_NO_ERROR)
{
vtkErrorMacro("Error occured during Shader compile.");
vtkErrorMacro("Error occurred during Shader compile.");
return 0;
}
return 1;
......
......@@ -65,7 +65,7 @@ protected:
// Description:
// Some subclasses may need to do some preprocessing
// before the actual rendering can be done eg. build effecient
// before the actual rendering can be done eg. build efficient
// representation for the data etc. This should be done here.
// This method get called after the ProcessInformation()
// but before RenderInternal().
......@@ -87,7 +87,7 @@ protected:
const char *&strippaintertype);
// Description:
// Passes on the information and the data to the choosen painters.
// Passes on the information and the data to the chosen painters.
virtual void UpdateChoosenPainters();
// Description:
......
......@@ -985,7 +985,7 @@ void vtkCocoaRenderWindow::PrefFullScreen()
void vtkCocoaRenderWindow::WindowRemap()
{
vtkWarningMacro(<< "Can't remap the window.");
// Aquire the display and capture the screen.
// Acquire the display and capture the screen.
// Create the full-screen window.
// Add the context.
}
......
......@@ -275,7 +275,7 @@ static vtkEarlyCocoaSetup * gEarlyCocoaSetup = new vtkEarlyCocoaSetup();
data2:0];
[application postEvent:event atStart:YES];
// The NSWindow is closing, so prevent anyone from accidently using it
// The NSWindow is closing, so prevent anyone from accidentally using it
renWin->SetRootWindow(NULL);
}
}
......
......@@ -25,7 +25,7 @@
//
// The depth peeling algorithm works by rendering the translucent polygonal
// geometry multiple times (once for each peel). The actually rendering of
// the translucent polygonal geometry is peformed by its delegate
// the translucent polygonal geometry is performed by its delegate
// TranslucentPass. This delegate is therefore used multiple times.
//
// Its delegate is usually set to a vtkTranslucentPass.
......
......@@ -906,7 +906,7 @@ bool vtkFreeTypeTools::CalculateBoundingBox(vtkTextProperty *tprop,
// Starting position given the bearings. Move the pen to the upper-left
// extent of this character.
// Substract 1 to the bearing Y, because this is the vertical distance
// Subtract 1 to the bearing Y, because this is the vertical distance
// from the glyph origin (0,0) to the topmost pixel of the glyph bitmap
// (more precisely, to the pixel just above the bitmap). This distance is
// expressed in integer pixels, and is positive for upwards y.
......@@ -1101,7 +1101,7 @@ bool vtkFreeTypeTools::PopulateImageData(vtkTextProperty *tprop,
if (bitmap->width && bitmap->rows)
{
// Starting position given the bearings.
// Substract 1 to the bearing Y, because this is the vertical distance
// Subtract 1 to the bearing Y, because this is the vertical distance
// from the glyph origin (0,0) to the topmost pixel of the glyph bitmap
// (more precisely, to the pixel just above the bitmap). This distance is
// expressed in integer pixels, and is positive for upwards y.
......
......@@ -199,7 +199,7 @@ double vtkFrustumCoverageCuller::Cull( vtkRenderer *ren,
coverage = 0;
}
// Convert this to an allocated render time - coverage less than
// the minumum result in 0.0 time, greater than the maximum result in
// the minimum result in 0.0 time, greater than the maximum result in
// 1.0 time, and in between a linear ramp is used
if ( coverage < this->MinimumCoverage )
{
......
......@@ -74,9 +74,9 @@ public:
void SetBackRightBuffer(unsigned int);
// }@
//! convenience function to push the state and push/init the tranform matrices
//! convenience function to push the state and push/init the transform matrices
void PushState();
//! convenience function to pop the state and pop the tranform matrices
//! convenience function to pop the state and pop the transform matrices
void PopState();
// {@
......
......@@ -35,7 +35,7 @@ vtkInteractorStyleJoystickActor::vtkInteractorStyleJoystickActor()
this->InteractionPicker = vtkCellPicker::New();
this->InteractionPicker->SetTolerance(0.001);
// Use timers to handle continous interaction
// Use timers to handle continuous interaction
this->UseTimers = 1;
}
......
......@@ -26,7 +26,7 @@ vtkStandardNewMacro(vtkInteractorStyleJoystickCamera);
//----------------------------------------------------------------------------
vtkInteractorStyleJoystickCamera::vtkInteractorStyleJoystickCamera()
{
// Use timers to handle continous interaction
// Use timers to handle continuous interaction
this->UseTimers = 1;
}
......
......@@ -277,7 +277,7 @@ void vtkLODActor::CreateOwnLODs()
return;
}
// There are ways of getting arround this limitation ...
// There are ways of getting around this limitation ...
if ( this->LODMappers->GetNumberOfItems() > 0 )
{
vtkErrorMacro(<<
......
......@@ -2545,7 +2545,7 @@ void vtkLabelHierarchy::Implementation::DropAnchor3( vtkIdType anchor )
}
// If an anchor is near any octree boundaries, copy it to neighbors at the same level.
// This will create neighbors if neccessary.
// This will create neighbors if necessary.
void vtkLabelHierarchy::Implementation::SmudgeAnchor2( HierarchyCursor2& cursor, vtkIdType anchor, double* x )
{
(void)cursor;
......
......@@ -380,7 +380,7 @@ int vtkLabelPlacer::RequestData(
// This will trigger if you do something like ResetCamera before the Renderer or
// RenderWindow have allocated their appropriate system resources (like creating
// an OpenGL context)." Resource allocation must occure before we can use the Z
// an OpenGL context)." Resource allocation must occur before we can use the Z
// buffer.
if ( this->Renderer->GetRenderWindow()->GetNeverRendered() )
{
......
......@@ -831,7 +831,7 @@ int vtkLabeledTreeMapDataMapper::AnalyseLabel(char * string, int level,
int vtkLabeledTreeMapDataMapper::ApplyMasks(int level, float flimits[4],
float blimits[4])
{
// Note that all limits and mask infomation is in Device Coordinates
// Note that all limits and mask information is in Device Coordinates
float dy = 0.0;
int changed = 1, dir = 0, l;
......@@ -893,7 +893,7 @@ int vtkLabeledTreeMapDataMapper::ApplyMasks(int level, float flimits[4],
if (this->LabelMasks[l][0] > flimits[1])
{
// Set the second component to be -(value + 1) - the reason
// for the offset is to take of the case the orginal value is 0
// for the offset is to take of the case the original value is 0
this->LabelMasks[l][1] = -1.0 * (this->LabelMasks[l][1] + 1.0);
continue;
}
......
......@@ -21,7 +21,7 @@
// This file defines some lighting functions.
// They can be used either in a vertex or fragment shader.
// It is intented to be used in conjunction with vtkLightsSwitches class.
// It is intended to be used in conjunction with vtkLightsSwitches class.
// Those functions expect uniform variables about the status of lights
// 1. In fixed-mode pipeline (glUseProgram(0)),
......
......@@ -144,7 +144,7 @@ public:
// field is defined. This class performs LIC in the normalized image space
// and hence generally it needs to transform the input vector field (given
// in physical space) to the normalized image space. The Spacing is needed
// to determine the tranform. Default is (1.0, 1.0). It is possible to
// to determine the transform. Default is (1.0, 1.0). It is possible to
// disable vector transformation by setting TransformVectors to 0.
vtkSetVector2Macro( GridSpacings, double );
vtkGetVector2Macro( GridSpacings, double );
......@@ -153,7 +153,7 @@ public:
// This class performs LIC in the normalized image space. Hence, by default
// it transforms the input vectors to the normalized image space (using the
// GridSpacings and input vector field dimensions). Set this to 0 to disable
// tranformation if the vectors are already tranformed.
// tranformation if the vectors are already transformed.
vtkSetClampMacro( TransformVectors, int, 0, 1 );
vtkBooleanMacro( TransformVectors, int );
vtkGetMacro( TransformVectors, int );
......
......@@ -139,7 +139,7 @@ void vtkOpenGLCoincidentTopologyResolutionPainter::RenderShiftZBuffer(
GLint stackDepth, maxStackDepth;
glGetIntegerv(GL_PROJECTION_STACK_DEPTH, &stackDepth);
glGetIntegerv(GL_MAX_PROJECTION_STACK_DEPTH, &maxStackDepth);
// We need to push the projection matrix on the stack. Unfortunatly, the
// We need to push the projection matrix on the stack. Unfortunately, the
// projection matrix stack can be small, so we check to make sure that we
// can do it.
if (stackDepth < maxStackDepth)
......
......@@ -827,7 +827,7 @@ int vtkgl::LoadCorePromotedExtension(const char *name,
// OpenGL 1.1
// VTK supports at least OpenGL 1.1. There is no need to load promoted
// extentions GL_EXT_subtexture and GL_EXT_copy_texture.
// extensions GL_EXT_subtexture and GL_EXT_copy_texture.
// Just silently returns 1.
if (strcmp(name, "GL_EXT_subtexture") == 0)
......
......@@ -62,7 +62,7 @@ vtkOpenGLImageMapper::~vtkOpenGLImageMapper()
*/
// the bit-shift must be done after the comparison to zero
// because bit-shift is implemenation dependant for negative numbers
// because bit-shift is implemenation dependent for negative numbers
#define vtkClampIntToUnsignedChar(x,y,shift) \
{ \
val = (y); \
......
......@@ -96,7 +96,7 @@ void vtkOpenGLLight::Render(vtkRenderer *vtkNotUsed(ren),int light_index)
glLightf(static_cast<GLenum>(light_index),
GL_QUADRATIC_ATTENUATION, this->AttenuationValues[2]);
// set up spot parameters if neccesary
// set up spot parameters if necessary
if (this->ConeAngle < 180.0)
{
Info[0] = dx;
......
......@@ -1984,7 +1984,7 @@ int vtkOpenGLPolyDataMapper::Draw(vtkRenderer *aren, vtkActor *act)
}
// Set the texture if we are going to use texture
// for coloring with a point attribute.
// fixme ... make the existance of the coordinate array the signal.
// fixme ... make the existence of the coordinate array the signal.
if (this->InterpolateScalarsBeforeMapping && this->ColorCoordinates &&
! (idx & VTK_PDM_CELL_COLORS))
{
......
......@@ -1226,7 +1226,7 @@ void vtkOpenGLRenderer::DonePick()
{
this->PickInfo->PickedId = *ptr;
}
// skip additonal names
// skip additional names
ptr += num_names;
}
// If there was a pick, then get the Z value
......@@ -1302,7 +1302,7 @@ int vtkOpenGLRenderer::GetPickedIds(unsigned int atMost,
iptr++; // move to first name picked
*optr = static_cast<unsigned int>(*iptr);
optr++;
// skip additonal names
// skip additional names
iptr += num_names;
}
return k;
......
......@@ -63,7 +63,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// .SECTION Description
// This Exporter can be attached to a render window in order to generate
// scene description files for the Persistance of Vision Raytracer
// scene description files for the Persistence of Vision Raytracer
// www.povray.org.
//
// .SECTION Thanks
......
......@@ -175,7 +175,7 @@ protected:
// Description:
// Some subclasses may need to do some preprocessing
// before the actual rendering can be done eg. build effecient
// before the actual rendering can be done eg. build efficient
// representation for the data etc. This should be done here.
// This method get called after the ProcessInformation()
// but before RenderInternal().
......
......@@ -124,7 +124,7 @@ protected:
vtkAbstractMapper3D *Mapper; //selected mapper (if the prop has a mapper)
vtkDataSet *DataSet; //selected dataset (if there is one)
double GlobalTMin; //parametric coordinate along pick ray where hit occured
double GlobalTMin; //parametric coordinate along pick ray where hit occurred
vtkTransform *Transform; //use to perform ray transformation
vtkActorCollection *Actors; //candidate actors (based on bounding box)
vtkProp3DCollection *Prop3Ds; //candidate actors (based on bounding box)
......
......@@ -63,7 +63,7 @@ protected:
// Description:
// Some subclasses may need to do some preprocessing
// before the actual rendering can be done eg. build effecient
// before the actual rendering can be done eg. build efficient
// representation for the data etc. This should be done here.
// This method get called after the ProcessInformation()
// but before RenderInternal().
......
......@@ -231,7 +231,7 @@ public:
vtkGetObjectMacro(Material, vtkXMLMaterial);
// Description:
// Returns the name of the material currenly loaded, if any.
// Returns the name of the material currently loaded, if any.
vtkGetStringMacro(MaterialName);
// Description:
......@@ -354,7 +354,7 @@ public:
// Description:
// Remove a texture from the collection. Note that the
// indices of all the subsquent textures, if any, will change.
// indices of all the subsequent textures, if any, will change.
void RemoveTexture(const char* name);
// Description:
......
......@@ -366,7 +366,7 @@ void vtkQuadricLODActor::PrintSelf(ostream& os, vtkIndent indent)
{
this->Superclass::PrintSelf(os,indent);
os << indent << "Defer LOD Contruction: "
os << indent << "Defer LOD Construction: "
<< (this->DeferLODConstruction ? "On\n" : "Off\n");
os << indent << "Static : " << (this->Static ? "On\n" : "Off\n");
......
......@@ -23,7 +23,7 @@ vtkStandardNewMacro(vtkQuaternionInterpolator);
//----------------------------------------------------------------------------
// PIMPL STL encapsulation for list of quaternions. The list is sorted on
// the spline paramter T (or Time) using a STL list.
// the spline parameter T (or Time) using a STL list.
// Here we define a quaternion class that includes extra information including
// a unit quaternion representation.
struct vtkQuaternion
......
......@@ -360,7 +360,7 @@ void vtkRenderer::Render(void)
// If we aborted, do not record the last render time.
// Lets play around with determining the acuracy of the
// Lets play around with determining the accuracy of the
// EstimatedRenderTimes. We can try to adjust for bad
// estimates with the TimeFactor.
if ( ! this->RenderWindow->GetAbortRender() )
......
......@@ -399,7 +399,7 @@ public:
// Description:
// Compute the aspect ratio of this renderer for the current tile. When
// tiled displays are used the aspect ratio of the renderer for a given
// tile may be diferent that the aspect ratio of the renderer when rendered
// tile may be different that the aspect ratio of the renderer when rendered
// in it entirity
double GetTiledAspectRatio();
......
......@@ -175,7 +175,7 @@ public:
//ETX
// Description:
// Have the text preceding the scalar bar or suceeding it ?
// Have the text preceding the scalar bar or succeeding it ?
// Succeed implies the that the text is Above scalar bar if orientation
// is horizontal or Right of scalar bar if orientation is vertical.
// Precede is the opposite
......
......@@ -92,7 +92,7 @@ int vtkSelectVisiblePoints::RequestData(
// This will trigger if you do something like ResetCamera before the Renderer or
// RenderWindow have allocated their appropriate system resources (like creating
// an OpenGL context)." Resource allocation must occure before we can use the Z
// an OpenGL context)." Resource allocation must occur before we can use the Z
// buffer.
if ( this->Renderer->GetRenderWindow()->GetNeverRendered() )
{
......
......@@ -151,7 +151,7 @@ protected:
//ETX
// Description:
// Runs throught the XML element children to locate uniform
// Runs through the XML element children to locate uniform
// variable elements and process them.
virtual void SetShaderParameters(vtkActor*, vtkRenderer*,
vtkXMLDataElement*);
......
......@@ -91,7 +91,7 @@ public:
virtual void SetOpaquePass(vtkRenderPass *opaquePass);
// Description:
// Delegate for compositing of the shadow maps accross processors.
// Delegate for compositing of the shadow maps across processors.
// If it is NULL, there is no z compositing.
// It is usually set to a vtkCompositeZPass (Parallel package).
// Initial value is a NULL pointer.
......
......@@ -421,7 +421,7 @@ void vtkStandardPolyDataPainter::DrawCells(
int numc = a->GetNumberOfComponents();
int siComp = this->Internal->Mappings->GetComponent(mappingsIndex);
// if siComp==-1, then all components of the array are sent,
// otherwise only the choosen component is sent.
// otherwise only the chosen component is sent.
shaderDevice->SendAttribute(
this->Internal->Mappings->GetAttributeName(mappingsIndex),
(siComp>=0)? 1: numc,
......@@ -439,7 +439,7 @@ void vtkStandardPolyDataPainter::DrawCells(
int numc = a->GetNumberOfComponents();
int siComp = this->Internal->Mappings->GetComponent(mappingsIndex);
// if siComp==-1, then all components of the array are sent,
// otherwise only the choosen component is sent.
// otherwise only the chosen component is sent.
shaderDevice2->SendAttribute(
this->Internal->Mappings->GetAttributeName(mappingsIndex),
(siComp>=0)? 1: numc,
......@@ -515,7 +515,7 @@ void vtkStandardPolyDataPainter::DrawCells(
int numc = a->GetNumberOfComponents();
int siComp = this->Internal->Mappings->GetComponent(mappingsIndex);
// if siComp==-1, then all components of the array are sent,
// otherwise only the choosen component is sent.
// otherwise only the chosen component is sent.
shaderDevice->SendAttribute(
this->Internal->Mappings->GetAttributeName(mappingsIndex),
(siComp>=0)? 1: numc,
......@@ -535,7 +535,7 @@ void vtkStandardPolyDataPainter::DrawCells(
int numc = a->GetNumberOfComponents();
int siComp = this->Internal->Mappings->GetComponent(mappingsIndex);
// if siComp==-1, then all components of the array are sent,
// otherwise only the choosen component is sent.
// otherwise only the chosen component is sent.
shaderDevice2->SendAttribute(
this->Internal->Mappings->GetAttributeName(mappingsIndex),
(siComp>=0)? 1: numc,
......
......@@ -86,7 +86,7 @@ public:
// Description:
// Control the contribution of the LIC in the final output image.
// 0.0 produces same result as disabling LIC alltogether, while 1.0 implies
// 0.0 produces same result as disabling LIC altogether, while 1.0 implies
// show LIC result alone.
vtkSetClampMacro(LICIntensity, double, 0.0, 1.0);
vtkGetMacro(LICIntensity, double);
......@@ -119,7 +119,7 @@ protected:
// Description:
// Some subclasses may need to do some preprocessing
// before the actual rendering can be done eg. build effecient
// before the actual rendering can be done eg. build efficient
// representation for the data etc. This should be done here.
// This method get called after the ProcessInformation()
// but before RenderInternal().
......
......@@ -267,7 +267,7 @@ void vtkTDxMacDevice::PrintSelf(ostream& os, vtkIndent indent)
// ----------------------------------------------------------------------------
// Description:
// Convert a C string to a Pascal String. Allocation happens with new[].
// It is the responsability of the user to call delete[].
// It is the responsibility of the user to call delete[].
//
// Apple specific. String literal starting with \p are pascal strings: it is
// an unsigned char array starting with the length and terminated by \0. The
......
......@@ -77,7 +77,7 @@ protected:
// Description:
// Convert a C string to a Pascal String. Allocation happens with new[].
// It is the responsability of the user to call delete[].
// It is the responsibility of the user to call delete[].
//
// Apple specific. String literal starting with \p are pascal strings: it is
// an unsigned char array starting with the length and terminated by \0. The
......
......@@ -1361,7 +1361,7 @@ vtkPixelBufferObject* vtkTextureObject::Download()
unsigned int size = this->Width* this->Height* this->Depth;
// doesnt matter which Upload*D method we use since we are not really
// doesn't matter which Upload*D method we use since we are not really
// uploading any data, simply allocating GPU space.
if (!pbo->Upload1D(vtktype, NULL, size, this->Components, 0))
{
......
......@@ -458,7 +458,7 @@ protected:
void CreateTexture();
// Description:
// Destory the texture.
// Destroy the texture.
void DestroyTexture();
int NumberOfDimensions;
......
......@@ -72,7 +72,7 @@ extern int vtkImageViewerCommand(ClientData cd, Tcl_Interp *interp,
//----------------------------------------------------------------------------
// It's possible to change with this function or in a script some
// options like width, hieght or the ImageViewer widget.
// options like width, height or the ImageViewer widget.
int vtkTkImageViewerWidget_Configure(Tcl_Interp *interp,
struct vtkTkImageViewerWidget *self,
int argc, char *argv[], int flags)
......
......@@ -74,7 +74,7 @@ static Tk_ConfigSpec vtkTkRenderWidgetConfigSpecs[] = {
};
// Foward prototypes
// Forward prototypes
extern "C"
{
void vtkTkRenderWidget_EventProc(ClientData clientData,
......
......@@ -84,7 +84,7 @@ void vtkVisibilitySort::ReportReferences(vtkGarbageCollector *collector)
void vtkVisibilitySort::SetModelTransform(vtkMatrix4x4 *mat)
{
// Less efficent than vtkMatrix4x4::DeepCopy, but only sets Modified if
// Less efficient than vtkMatrix4x4::DeepCopy, but only sets Modified if
// there is a real change.
for (int i = 0; i < 4; i++)
{
......
......@@ -200,11 +200,11 @@ protected:
// The corrected scalar opacity transfer function array - this is identical
// to the opacity transfer function array when the step size is 1.
// In other cases, it is corrected to reflect the new material thickness
// modeled by a step size different than 1.
// modelled by a step size different than 1.
float *CorrectedScalarOpacityArray[VTK_MAX_VRCOMP];
vtkTimeStamp CorrectedScalarOpacityArrayMTime[VTK_MAX_VRCOMP];
// CorrectedStepSize is the step size currently modeled by
// CorrectedStepSize is the step size currently modelled by
// CorrectedArray. It is used to determine when the
// CorrectedArray needs to be updated to match SampleDistance
// in the volume mapper.
......
......@@ -642,7 +642,7 @@ void vtkWin32OpenGLRenderWindow::SetupPixelFormat(HDC hDC, DWORD dwFlags,
1, /* version */
dwFlags , /* support double-buffering */
PFD_TYPE_RGBA, /* color type */
bpp, /* prefered color depth */
bpp, /* preferred color depth */
0, 0, 0, 0, 0, 0, /* color bits (ignored) */
this->AlphaBitPlanes ? bpp/4 : 0, /* no alpha buffer */
0, /* alpha bits (ignored) */
......@@ -869,7 +869,7 @@ LRESULT vtkWin32OpenGLRenderWindow::MessageProc(HWND hWnd, UINT message,
void vtkWin32OpenGLRenderWindow::InitializeApplication()
{
// get the applicaiton instance if we don't have one already
// get the application instance if we don't have one already
if (!this->ApplicationInstance)
{
// if we have a parent window get the app instance from it
......
......@@ -170,7 +170,7 @@ void vtkXRenderWindowInteractor::SetWidget(Widget foo)
//-------------------------------------------------------------------------
// This method will store the top level shell widget for the interactor.
// This method and the method invocation sequence applies for:
// 1 vtkRenderWindow-Interactor pair in a nested widget heirarchy
// 1 vtkRenderWindow-Interactor pair in a nested widget hierarchy
// multiple vtkRenderWindow-Interactor pairs in the same top level shell
// It is not needed for
// 1 vtkRenderWindow-Interactor pair as the direct child of a top level shell
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment