summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/polyline.cxx
AgeCommit message (Collapse)AuthorFilesLines
2015-08-17Put Polygon from tools under tools:: namespaceNorbert Thiebaud1-10/+10
Polygon is one of these names that Clash with some system objects A similar work has been done earlier with PolyPolygon. Change-Id: Icf2217cb2906292b7275760f1a16be0e150312f5 Reviewed-on: https://gerrit.libreoffice.org/17789 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-07-04Fix typosAndrea Gelmini1-1/+1
Change-Id: Id9296115f30858e7fd470a199e59343a96d7deec Reviewed-on: https://gerrit.libreoffice.org/16712 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2015-06-18Assertions should tell the line number where the problem isTor Lillqvist1-4/+7
Let's not hide the assert() in a function whose sole purpose is to call assert(). Change-Id: I7a8a04aad560b0f22398daabf12d00bbe58e89f1
2015-06-04convert B2DLineJoin to scoped enumNoel Grandin1-2/+2
Change-Id: I4fb8f2c9e2080e3aa542d2ccf838e6784baa8429
2015-06-01masses of coverity FORWARD_NULL warnings from copied assertCaolán McNamara1-4/+4
Change-Id: I8f698bbcf4d53a4477cc0ee0c3f2c7f08e521f8a
2015-05-24rendercontext: Add asserts to easily catch the direct rendering cases.Jan Holesovsky1-1/+7
Change-Id: I5e05b08e30930740be0fdbb18169bf350e2eab9f
2015-05-20convert ANTIALIASING constants to scoped enumNoel Grandin1-5/+5
Change-Id: I175b8ea4e8bc01c3cdd3dd90506eba01b35e0085
2015-01-20Some more loplugin:cstylecast: vclStephan Bergmann1-3/+3
Change-Id: I74d35630b9fcdaa97af0b1f1e6d1e5c72488964d
2015-01-12do not set Y line width to 0Luboš Luňák1-1/+1
I'm somewhat confused by why there needs to be a separate line width for X and Y, but apparently there is, and the latter shouldn't be just plain 0 (otherwise a number of drawPolyLine() implementations either skip using a simpler path for the usual case of them being equal, or even plain to refuse work at all and cause a fall back). And I hope this doesn't lead to finding out that some of those implementation are actually buggy. Change-Id: I2dbbd1539c4a96d41935cce9ae6565872e2a459b
2014-11-05vcl: renamed OutputDevice::PaintLineGeometryWithEvtlExpand()Chris Sherlock1-1/+1
I asked on the LO dev mailing list what Evtl means and what is being expanded, and Michael Stahl kindly responded: > "Evtl" usually means German "eventuell" which means "possible" or > "optional" (i.e. totally different meaning from English "eventual"). So in other words, it means paint using line geometry and optionally expand. Or in other words, it just draws a line using a B2DPolyPolygon. Thus, I have renamed it to drawLine(), which is a private function of OutputDevice. I think this makes it somewhat clearer :-) Change-Id: I7eec23c61eda9dc1074922f5f2f67eacbc7fd725 Reviewed-on: https://gerrit.libreoffice.org/12264 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-11-03vcl: merge DrawPolyLineDirect() and drawPolyLineDirectNoAACheck()Chris Sherlock1-52/+44
I've merged these two functions, I just added a new function parameter to switch on and off the AA check, this function parameter defaults to false so DrawPolyLineDirect needs to do the AA check each time. If bBypassAACheck is set to true, then we automatically enable AA. Change-Id: Id2d9b2036a41716590f7b87f658f5bb210964392 Reviewed-on: https://gerrit.libreoffice.org/12191 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-11-02vcl: Refactor OutputDevice::TryDrawPolyLineDirect()Chris Sherlock1-36/+25
I've renamed TryDrawPolyLineDirect() to DrawPolyLineDirect() and also renamed TryDrawPolyLineDirectNoAACheck() to drawPolyLineDirectNoAACheck(). However, at the same time I feel that there is no need to call on drawPolyLineDirectNoAACheck in most instances, because DrawPolyLineDirect does an AA check before it can continue anyway. There is one instance where constantly checking the AA check is inefficient because it's in a loop, in that case then we call directly on drawPolyLineDirectNoAACheck, but this is the only case it is necessary. Change-Id: Ie0320bfc45b5c0e1ac6ce35912da3e2897af9429 Reviewed-on: https://gerrit.libreoffice.org/12190 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-11-02vcl: rename OutputDevice::DrawPolyLineWithLineInfo() to drawPolyLine()Chris Sherlock1-3/+3
Change-Id: I145ebcfb92fc75f4558d3bf090093aef9e848136 Reviewed-on: https://gerrit.libreoffice.org/12188 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-04-28VCL: rename TryDrawPolyLineDirectNoAA to TryDrawPolyLineDirectNoAACheckChris Sherlock1-5/+5
Change-Id: I7355db3294f5aaa3b4f4bac802ba064724ad2214
2014-04-27VCL: rename OutputDevice::ImplInitFillColor and make it privateChris Sherlock1-2/+2
Change-Id: I01c0974d3a2f79cf3c6b9730ea306dcd49927a3c
2014-04-27vcl/outdev/*.cxx cosmetic clean-upNorbert Thiebaud1-67/+63
Change-Id: I967a50cf4fdde87efbcec990eab4f68570f27b94
2014-04-24fdo#74336 wrongly transformed line width - use 0 for heightTomaž Vajngerl1-1/+1
Change-Id: I3915cfabb9568480d74ea6d4e459def6fe912eb9
2014-04-25VCL: remove comment, rename ImplInitClipRegion to InitClipRegionChris Sherlock1-4/+4
Change-Id: If8d18b59285f75d61d9972ca019390fce700be3c
2014-04-24VCL: Remove unnecessary headers from outdev/polyline.cxxChris Sherlock1-1/+0
Change-Id: I2439ad38dc531fb35167f6778312a244bb2fbb01
2014-04-23Rename OutputDevice::ImplGetGraphics to GetGraphicsChris Sherlock1-4/+4
Change-Id: I4086978f2292538c458802a7fb56c0d3826f2def
2014-04-22Rearrange OutputDevice line functionsChris Sherlock1-32/+36
Reorganized OutputDevice line functions - several of these functions should be private. I have renamed the following functions: * ImplInitLineColor -> InitLineColor (made this private) * ImplPaintLineGeometryWithEvtlExpand -> PaintLineGeometryWithEvtlExpand (made this private) * ImplTryDrawPolyLineDirect -> TryDrawPolyLineDirectNoAA (made this private) I also made a small code change to make bTryAA more clear, and also change (bTryAA && TryDrawPolyLineDirect(rPoly.getB2DPolygon()) to a nestied if statement. Change-Id: I90e8083d69b715912bf0ad1d400bc355f3501981
2014-04-17Remove commented out code in polyline.cxxChris Sherlock1-15/+0
Change-Id: I400d38ccb2e87c6435bc767c13a52beb62baa435
2014-04-17Move bezier functionsChris Sherlock1-2/+2
Move ImplSubdivideBezier(Polygon) to Polygon as a static function. Move ImplSubdivideBezier(PolyPolygon) to PolyPolygon as a static function. Change-Id: I0d006a8a2d3a8d9ba1aec913ceecb38507e4dd2f
2014-04-16Split outdev2.cxxChris Sherlock1-0/+383
I have split outdev2.cxx into the following files: + alpha.cxx + bezier.cxx + bitmap.cxx + blend.cxx + gradient.cxx + hatch.cxx + pixel.cxx + polygon.cxx + line.cxx + polyline.cxx + rect.cxx + transparent.cxx I have also moved all the DrawDev functions into outdev.cxx Change-Id: Ica7057250526cd1ed680e5ec173c73265a586ea3