direct.directtools.DirectGrid

from direct.directtools.DirectGrid import DirectGrid

Inheritance diagram

Inheritance diagram of direct.directtools.DirectGrid

class DirectGrid(gridSize=100.0, gridSpacing=5.0, planeColor=(0.5, 0.5, 0.5, 0.5), parent=None)[source]

Bases: NodePath, DirectObject

__init__(self, gridSize=100.0, gridSpacing=5.0, planeColor=(0.5, 0.5, 0.5, 0.5), parent=None)[source]
computeSnapAngle(self, angle)[source]
computeSnapPoint(self, point)[source]
disable(self)[source]
enable(self, parent=None)[source]
getGridSize(self)[source]
getGridSpacing(self)[source]
getHprSnap(self)[source]
getSnapAngle(self)[source]
getXyzSnap(self)[source]
isEnabled(self)[source]
setGridSize(self, size)[source]
setGridSpacing(self, spacing)[source]
setHprSnap(self, fSnap)[source]
setSnapAngle(self, angle)[source]
setXyzSnap(self, fSnap)[source]
toggleGrid(self, parent=None)[source]
updateGrid(self)[source]